The
roles client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.Key Capabilities
- List all roles (predefined and custom) in your account
- Retrieve a specific role by name or ID
- Create custom roles with specific permissions
- Update a custom role’s name, description, or permissions
- Delete custom roles
List Roles
List all roles available in your account. Optionally filter to predefined or custom roles only.Create a Role
Create a new custom role. Role names must be unique within the account. At least one permission must be provided. Predefined (system-managed) roles cannot be created through this endpoint.Get a Role
Retrieve a specific role by name or ID.Update a Role
Update an existing custom role. At least one ofname, description, or permissions must be provided. When permissions is provided, the existing permissions are fully replaced with the new set. Predefined roles cannot be updated.