apply_role_template
Grant all scopes in a role template to a tenant or team in one call, simplifying permission setup. Requires an organization on Kiln Business.
Instructions
Grant every scope in a role template to a tenant or team in a single call.
Needs the organisation to be on Kiln Business.
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": {
"org_id": "<org_id>",
"role": "<role>",
"granted_by": "<granted_by>"
},
"name": "apply_role_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The role template to apply: ``"designer"``, ``"reviewer"``, ``"release-manager"`` or ``"read-only"``. Any other name is refused. | |
| ask_id | No | The id an earlier ``APPROVAL_REQUIRED`` answer returned. Pass it on the repeat call to learn whether the person approved; omit it on the first call. | |
| org_id | Yes | The org the grants are made in. | |
| team_id | No | The team that receives the role. Give exactly one of ``tenant_id`` and ``team_id``. | |
| tenant_id | No | The account that receives the role. Give exactly one of ``tenant_id`` and ``team_id``. | |
| granted_by | Yes | Who is making the grants, recorded on each one. On Kiln's hosted server it is read from the signed-in session. |