tc_grant_permissions
Set or update user/group permissions on a folder or file while keeping existing access unchanged. Specify project, item, subjects, and level to apply the change.
Instructions
Give users/groups a permission level on a folder or file (safe merge).
Reads the current ACL, moves the given subjects to the requested level, and writes the whole ACL back — everyone else keeps what they had. Requires TC_ENABLE_WRITE=1.
Args: project_id: Project ID. item_id: Folder or file ID. subject_ids: User ids (tc_list_project_members) and/or group ids (tc_list_groups). Use "tc-groups:*" for all project members. level: "READ", "FULL_ACCESS", or "NO_ACCESS" (folders only). item_type: "FOLDER" (default) or "FILE". inheritance: Optional — set True/False to also change whether the folder inherits permissions from its parent.
Returns: {"updated": true, "acl": {...}, "inheritance": bool}
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": {
"project_id": "<project_id>",
"item_id": "<item_id>",
"subject_ids": "<subject_ids>"
},
"name": "tc_grant_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | READ | |
| item_id | Yes | ||
| item_type | No | FOLDER | |
| project_id | Yes | ||
| inheritance | No | ||
| subject_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |