Forum Discussion

praveen12's avatar
praveen12
New Contributor
4 months ago

SwaggerHub InActive User Deletion

Hello Community,

I am using SwaggerHub 2.x embedded cluster mode application. For deleting the InActive users (no role assigned users, mapped with "-" in user_list command output ), from the application, I am referring the onprem user management API to delete Users by emailId from the Application. 

User Deletion API URL - https://<swaggerhub-host>api/user-management/v1/users?user=

To invoke this endpoint, I need an user who is part of super-user list. So should I user the "Admin" user for this?. If yes, then how can I generate the API key for Admin user, which will be used as Authorization header while invoking Delete APi URL.

Note - I use Admin user to login the Swagger Admin dashboard console only.

Regards,

Praveen Nagle

1 Reply

  • Hey Praveen, 

    You should use a normal user with owner rights for tasks you will script. The admin user is meant just for the admin console