file_permission_set
Grant a user or group viewer, editor, or owner access to a file or folder; folder grants apply to contained items. Requires owner level and an RBAC-enabled storage.
Instructions
Grant a person (user_id) or a group (group_id) a level on a file or folder - viewer, editor or owner; a folder's grant reaches what is inside it. Needs owner level on the item and the account's share.users, and works on a storage with access control (storage_rbac); a viewer account can only be given viewer (RBAC.md).
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": {
"path": "<path>",
"level": "<level>"
},
"name": "file_permission_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | adapter:// path of the file or folder | |
| level | Yes | viewer, editor or owner | |
| user_id | No | the person to grant to (an id file_permission_users answers); or group_id | |
| group_id | No | the group to grant to (every member); or user_id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | the operation's JSON answer - the body its REST twin under /api/ai answers (an object) | |
| status | Yes |