security-set-item-acl-by-id
Set access control permissions for Sitecore items by ID to manage user or role access rights like item:read or item:write.
Instructions
Sets an access control entry to a Sitecore item by its ID.
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": {
"id": "<id>",
"identity": "<identity>",
"accessRight": "<accessRight>"
},
"name": "security-set-item-acl-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to add ACL entry for | |
| path | No | master: | |
| identity | Yes | The identity of the account (user or role) to grant permissions to (e.g. 'sitecore\admin') | |
| accessRight | Yes | The access right to grant (e.g. 'item:read', 'item:write') | |
| propagationType | No | The propagation type for the access right | Entity |
| securityPermission | No | Whether to allow or deny the specified access right | AllowAccess |