security-protect-item-by-id
Protect a Sitecore item by its ID to prevent unauthorized access or modifications. Specify the item ID and database to apply security restrictions.
Instructions
Protect a Sitecore item by its ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to protect | |
| passThru | No | If set to true, passes the processed object back to the pipeline | |
| database | No | The database containing the item (defaults to the context database) |