POST
/v1/mgmt/user/update/role/remove
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
- See Manage Users for further details on managing users.
- See The User Object for further details on the user object.
- See Manage Roles for further details on managing roles.
Endpoint Authentication
Use authorization bearer header with the following format:
Authorization: Bearer \<ProjectId:ManagementKey\>
Authorization
Authorization
RequiredBearer <token>
< Project ID >:< Management Key > as bearer
In: header
Request Body
loginId
string
tenantId
string
roleNames
array<string>
Status code | Description |
---|---|
200 | OK |
Was this helpful?