Users
Set User Permissions
Changed onSet the assigned permissions for a user.
put/users/{user_id}/permissions
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /users/{user_id}/permissions
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Path parameters
user_idstring required
ID of the user.
Example:usr_6968b3987ee4c3ec0b4ee3b9
Request body
Example request
{
"permissions": [
"users:write",
"agents:read"
]
}Response
Successful Response
Example response
{
"active": true,
"auth_provider": "external",
"created_at": "2026-01-15T09:30:00Z",
"email": "ada@example.com",
"external_subject_id": "auth0|6568b3984d1c238dbe7e2e29",
"first_name": "Ada",
"id": "usr_6968b3987ee4c3ec0b4ee3b9",
"invite_state": "accepted",
"last_name": "Lovelace",
"must_change_password": false,
"name": "Ada Lovelace",
"permissions": {
"assigned": [
"users:write",
"agents:read"
],
"effective": [
{
"implied_by": "users:write",
"name": "users:read"
}
]
},
"updated_at": "2026-01-20T14:05:00Z"
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
added the non-success response with the status
- info
added the non-success response with the status
- info