post
/public_api/v1/rbac/set_user_role
Add or remove one or more users from a role.
Required license: Cortex XDR Pro per Endpoint, Cortex XDR Pro, or Cortex XDR Pro per GB
Body parameters
request_dataObject
A dictionary containing the API request fields.
user_emailsArray[string]
List of one or more user emails of users you want to add to or remove from a role.
role_nameString
Name of the role you want to add a user to. Send an empty field to remove the user.
REQUEST BODY
{
"request_data": {
"user_emails": [
"user1@acme.com",
"user2@acme.com"
],
"role_name": "Role1"
}
}
CURL
curl -X 'POST'
-H
'Accept: application/json'
-H
'Content-Type: application/json'
'https://api-yourfqdn/public_api/v1/rbac/set_user_role'
-d
''
Responses