RBAC
The Role-Based Access Control (RBAC) API lets organization admins define custom roles, bundle them into groups, and assign users to those groups. It layers on top of the built-in organization roles (owner, admin, member) and is scoped to a single organization.
Base URL
Role endpoints
Group endpoints
Roles vs. groups
- Role — a named set of permissions, such as
["read:agents", "run:agents"]. - Group — a named bundle of role IDs. Users added to the group inherit the combined permissions of those roles.
Create a role
Request body
Response
List roles
Response
Update a role
Response
Create a group
Request body
Response
role_ids must exist in the same organization.
Add a member to a group
Response
Remove a member from a group
204 No Content on success.
Error codes
Related pages
- Workspaces — workspace membership and IP allowlists
- Service accounts — machine identities for automation
- Federation — map external identity claims to workspace roles