Create Access Control

Grant access to a file or folder for a user or group

Parameters

ParameterTypeRequiredDescription
item_idstringRequiredID of the item to grant access to
principal_idstringRequiredUser or Group ID to grant access to
can_viewbooleanOptionalCan view/list the item (default true)
can_downloadbooleanOptionalCan download files (default true)
can_uploadbooleanOptionalCan upload files (for folders)
can_deletebooleanOptionalCan delete items
can_manage_permissionsbooleanOptionalCan manage permissions for the item
notify_on_downloadbooleanOptionalNotify principal when files are downloaded
notify_on_uploadbooleanOptionalNotify principal when files are uploaded
send_notificationbooleanOptionalSend email notification about the access grant
messagestringOptionalMessage to include in the notification email

Examples

MCP Tool Call

{
  "name": "sharefile_createAccessControl",
  "arguments": {
    "item_id": "example",
    "principal_id": "example",
    "can_view": true,
    "can_download": true,
    "can_upload": true,
    "can_delete": true,
    "can_manage_permissions": true,
    "notify_on_download": true,
    "notify_on_upload": true,
    "send_notification": true,
    "message": "example"
  }
}

REST API

curl -X POST https://api.syncello.io/v1/tools/sharefile/createAccessControl \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "item_id": "example",
  "principal_id": "example",
  "can_view": true,
  "can_download": true,
  "can_upload": true,
  "can_delete": true,
  "can_manage_permissions": true,
  "notify_on_download": true,
  "notify_on_upload": true,
  "send_notification": true,
  "message": "example"
}'