Delete SwaggerHub 2.x users using the user-management API
Hi all,
We need to remove SwaggerHub users using the user management API, using SwaggerHub v2.x. (2.4.1+118)
The API documentation (https://app.swaggerhub.com/apis-docs/swagger-hub/user-management-api/v1) does not seem to allow the removal of users from the system, only from a given organization (https://app.swaggerhub.com/apis-docs/swagger-hub/user-management-api/v1#/Organization%20Members/removeMembers).
Do you know any way to remove users from SwaggerHub 2.x (using the user management API) so that they cannot count as seats in the license?
Much appreciated in advance
In the on-premise User Management API there is a path “/users” that supports a DELETE method.
“Deletes the specified users from the On-Premise system by email address. The authenticating user must be the On-Premise admin. Deleting the last owner of an organization will result in the organization also being deleted.”
This call removes a User from all on-premise organizations and returns the license seat to the available pool.
Removing a User with /orgs/{orgId}/members does not remove the user from the on-premise instance.