Duplicate a role
team_duplicate_roleDuplicate a system role's scope set to create a new customer-owned role, then customize permissions with team_update_role. Requires team:write scope.
Instructions
Create a new customer-owned role copying the source role's scope set (the source may be a system role). Useful for customizing a system role: duplicate it, then adjust scopes with team_update_role. The caller must hold every copied scope. Requires the team:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Machine name for the new role (unique within the customer), e.g. 'support_admin_custom' | |
| role_id | Yes | Source role UUID to copy scopes from (find it via team_list_roles) | |
| customer_id | Yes | Your customer UUID (shown in the WARP portal under Settings) | |
| description | No | Optional free-text description of the new role | |
| display_name | Yes | Human-readable name for the new role |