Set User's Roles

Set an existing user's roles, using a valid management key.

This API endpoint allows you to set a user's roles.

This will override the current roles associated to the user and will set all passed roles.

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/set
Request samples
Response samples
application/json
{
  • "user": {
    }
}