Update User Remove Roles

Remove roles from an existing user, using a valid management key.

This API endpoint allows you to remove roles from a user granularly without updating all user details.

roleNames is an array of the role names in string format.

The tenantId is optional; if provided, the user must be a member of that tenant

The response returns the user's details in json format.

See also

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer <ProjectId:ManagementKey>

SecurityAuthProjectIdMgmtKey
Request
Request Body schema: application/json
required
loginId
string
tenantId
string
roleNames
Array of strings
Responses
200

OK

post/v1/mgmt/user/update/role/remove
Request samples
Response samples
application/json
{
  • "user": {
    }
}