APIAuth
Replace a user's roles
Replace the roles a person holds.
PUT
Replace the roles a person holds.
ApiKeyAuthheader
AuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
manage_rolesuser_id*stringFormat
uuidapplication/json- body
The roles a person holds. Replacing the set is how roles are assigned.
role_ids*array<>The request has succeeded.
application/json- response
items*array<>curl -X PUT 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/roles' \ -H 'Content-Type: application/json' \ -d '{ "role_ids": [ "3805f8ab-a16f-4b9c-912c-4f3e3ae2a6f1" ]}'Example Response
{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "system": true } ]}