security-test-item-acl-by-id
Test user or role access rights to Sitecore items by ID to verify permissions for actions like reading, writing, or deleting content.
Instructions
Tests whether a user or role has specific access rights 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-test-item-acl-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to test access rights on | |
| identity | Yes | The identity of the user or role to test (e.g. 'sitecore\admin') | |
| accessRight | Yes | The access right to test (e.g. 'item:read', 'item:write') | |
| propType | No | The propagation type for the access right | |
| database | No | The database containing the item (defaults to the context database) |