update_acl
Modify an existing ServiceNow ACL rule by switching Allow If/Deny Unless decisions and replacing required roles; enable SCRIPTING_ENABLED before applying changes.
Instructions
Update an existing ACL rule (requires SCRIPTING_ENABLED=true). Can switch between Allow If and Deny Unless, and replace the required roles (each role must exist)
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": {
"sys_id": "<sys_id>"
},
"name": "update_acl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | Comma-separated roles that replace the ACL's current required roles. Each role must exist | |
| fields | No | Fields to update (active, script, condition, decision_type, security_attribute, etc.) | |
| sys_id | Yes | ACL sys_id | |
| decision_type | No | Set the decision type: allow (Allow If) or deny (Deny Unless) | |
| allow_missing_roles | No | Apply even if a role does not exist (default false) |