give_permission
Grant a user a specific role (Admin, Editor, Viewer) on a target workspace, profile, or channel.
Instructions
Grant a user a role on a target (hub profile, workspace, channel, etc.).
workspace_id: target workspace ID — get available IDs from list_workspaces()
target_type: "HubProfile", "Workspace", or "Channel"
role_id: 1 = Admin, 2 = Editor, 3 = Viewer
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": {
"user_id": "<user_id>",
"target_id": "<target_id>",
"target_type": "<target_type>",
"role_id": "<role_id>",
"workspace_id": "<workspace_id>"
},
"name": "give_permission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | Yes | ||
| user_id | Yes | ||
| target_id | Yes | ||
| target_type | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |