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
- 200
- 400
- 403
- 404
Returns the number of roles removed (passed), the number that failed, and a message for each item.
The roles could not be removed.
The signed-in user does not have the required role, or the account has read-only administrator access.
The user does not exist, or the signed-in user's account could not be found.