Duplicate a role
team_duplicate_roleCreate a customer-owned role by copying scopes from any source role, including system roles, so you can customize permissions safely. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>",
"role_id": "<role_id>",
"name": "<name>",
"display_name": "<display_name>"
},
"name": "team_duplicate_role"
}
}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 |