cURL
curl --request POST \ --url https://api.sandbox.tesouro.com/identity/v1/users/{userId}/disable \ --header 'Authorization: Bearer <token>'
{ "isEnabled": true, "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
The target user must be visible in the caller’s organization hierarchy. Requires user:write scope.
Token types: APP, USER | Required scopes: user:write
user:write
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The user ID to disable.
User disabled successfully.
Was this page helpful?