Create a custom role
team_create_roleCreate a custom role for your customer by assigning permission scopes from the platform registry. Scopes must be non-superadmin and held by the caller.
Instructions
Create a customer-owned role with the given scope set. Scopes must exist in the platform registry (discover them with acct_list_scopes), be non-superadmin, and be held by the caller (no privilege escalation). To start from an existing role's scopes instead, use team_duplicate_role. Requires the team:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Machine name for the role (unique within the customer), e.g. 'billing_viewer' | |
| scopes | Yes | Permission scopes the role grants, e.g. ['team:read', 'billing:read']. Use acct_list_scopes to see the full catalog. | |
| customer_id | Yes | Your customer UUID (shown in the WARP portal under Settings) | |
| description | No | Optional free-text description of the role's purpose | |
| display_name | Yes | Human-readable role name, e.g. 'Billing Viewer' |