Deny-Unless ACL
Learn details about Deny-Unless ACLs.
Deny-Unless ACLs are evaluated with a "deny-unless" approach. The ACL defines the users that will NOT be denied. Said another way, the user will be denied access unless the role, condition, and script requirements are met.
Important: Deny-Unless ACLs will take priority against Allow-If ACLs in ACL Evaluation, as it will be evaluated first.
A Deny-Unless ACL produces two outcomes:
|
Evaluation outcome |
Result |
|---|---|
|
Pass |
The defined roles, data conditions, security attributes, and script requirements are met. The ACL proceeds to further evaluation .Important: Even if a Deny-Unless ACL matches, access is only granted when an Allow-If ACL explicitly permits it. If no Allow-If ACL is matched and the Deny-Unless ACL passes, the system grants access by default. |
|
Fail |
The Deny-Unless ACL is marked as failing and access will be denied. |
- ACL has roles
sn_hr_core.manageroritil - Condition has active =
true - script has answer =
gs.isLoggedIn();
The user is denied access unless all three requirements for this ACL are satisfied. In order for this Deny-Unless ACL to pass, a user needs the sn_hr_core.manager or itil role, be accessing an active record, and be logged in. The Deny-Unless ACL will fail if any of the three requirements isn't met.
If there are multiple Deny-Unless ACLs on a specific resource, all of them must evaluate to true for the user to have access.
--- title: Deny-Unless ACL description: Learn details about Deny-Unless ACLs. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/access-control/acl-denial-behavior.html release: australia product: Access Control classification: access-control topic_type: concept last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Configure an ACL, Access Control Lists \(ACLs\), Access Management] --- # Deny-Unless ACL Learn details about Deny-Unless ACLs. Deny-Unless ACLs are evaluated with a "deny-unless" approach. The ACL defines the users that will NOT be denied. Said another way, the user will be denied access **unless** the role, condition, and script requirements are met. **Important:** Deny-Unless ACLs will take priority against Allow-If ACLs in ACL Evaluation, as it will be evaluated first. A Deny-Unless ACL produces two outcomes: <table id="table_jnn_5pl_zbc"><thead><tr><th> Evaluation outcome </th><th> Result </th></tr></thead><tbody><tr><td> Pass </td><td> The defined roles, data conditions, security attributes, and script requirements are met. The ACL proceeds to further evaluation .**Important:** Even if a Deny-Unless ACL matches, access is only granted when an Allow-If ACL explicitly permits it. If no Allow-If ACL is matched and the Deny-Unless ACL passes, the system grants access by default. </td></tr><tr><td> Fail </td><td> The Deny-Unless ACL is marked as failing and access will be denied. </td></tr></tbody> </table>The following is an example of a Deny-Unless ACL: - ACL has roles `sn_hr_core.manager` or `itil` - Condition has active = `true` - script has answer = `gs.isLoggedIn();` The user is denied access unless all three requirements for this ACL are satisfied. In order for this Deny-Unless ACL to pass, a user needs the `sn_hr_core.manager` or `itil` role, be accessing an active record, and be logged in. The Deny-Unless ACL will fail if any of the three requirements isn't met. If there are multiple Deny-Unless ACLs on a specific resource, all of them must evaluate to true for the user to have access.
| title | Deny-Unless ACL |
| description | Learn details about Deny-Unless ACLs. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-security/access-control/acl-denial-behavior.html |
| release | australia |
| product | Access Control |
| classification | access-control |
| topic_type | concept |
| last_updated | 2026-03-12 |
| reading_time_minutes | 1 |
| breadcrumb | Configure an ACLAccess Control Lists \(ACLs\)Access Management |