Skip to main content

Remove roles from a user

DELETE 

/api/v1/RolesRole/RemoveRolesFromManagedAccount/:managedAccountId

Removes one or more roles from a user in a single call. A signed-in administrator cannot remove their own account from the Administrator role; that item counts as failed. The server reads the list from the request body of this DELETE request, so the body is required. Some HTTP clients and API tools drop the body of a DELETE request; check that yours sends it.

Permission required: Administrator role.

Request​

Responses​

Returns the number of roles removed (passed), the number that failed, and a message for each item.