---
updatedAt: 2025-09-25T21:08:41.000Z
agentTools:
  projectIndex: https://developers.toriihq.com/llms.txt
---

# Disable SwaggerHub User

User Management for SwaggerHub

This guide documents removing users from your SwaggerHub Organization using their API.  This allows you to remove users from your organization with a custom action in a Torii workflow.  The SwaggerHub documentation on the topic can be found on the Smartbear support site \[here]\(Remove users from an organization).

To use this action you will first need to get your SwaggerHub API key.  Details on where that can be found are in [this](https://support.smartbear.com/swaggerhub/docs/en/swaggerhub-apis/user-management-api.html) support article from the Smartbear support site.

### Custom Action Configuration - Delete User from SwaggerHub Organization

**Method** : DELETE

**URL**  :  <https://api.swaggerhub.com/user-management/v1/orgs/YOUR_ORG_NAME/members>

**Query Parameters**

| Parameter | Variable Mapping      |
| :-------- | :-------------------- |
| user      | \[Trigger.User.Email] |

**Headers**

| Header        | Value                                    |
| :------------ | :--------------------------------------- |
| Content-Type  | application/json                         |
| Accept        | */*                                      |
| Authorization | Bearer \[SecretsVault.Swagger\_API\_Key] |