assign_role_to_subject
Assign a role to a subject to grant all policies attached to that role, enabling role-based access control.
Instructions
Give a subject a role. The subject inherits all policies assigned to the role. Use this to build RBAC: create a role, assign policies to it, then assign the role to subjects.
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": {
"subject_id": "<subject_id>",
"role_id": "<role_id>"
},
"name": "assign_role_to_subject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | Role UUID | |
| subject_id | Yes | Subject UUID |