
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:20 AM
As per Serviccenow Wiki, the ACL is executed in the below order:
- The condition must evaluate to true.
- The script must evaluate to true or return an answer variable with the value of true.
- The user must have one of the roles in the required roles list. If the list is empty, this condition evaluates to true.
- [Record ACL rules only] The matching table-level and field-level ACL rules must both evaluate to true.
However in the screenshot attached, the role of the user is first checked and then the condition.
Could you please let me know the exact sequence.
Thank You
Solved! Go to Solution.
- 43,701 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:21 AM
The sequence is ROLES first, then condition, then script. Roles are cached so it's always more efficient to use roles whenever possible.
Docs: Access control rules
Docs: Contextual security
Security Best Practices - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:21 AM
How does the order matter if all the 3 parms (if used) need to be true for the ACL to return true??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2024 10:04 PM
It matters because of performance (speed of evaluation). If you don't have the role then the condition and script do not need to be evaluated, and so the ACL is faster to evaluate than evaluating all 3 parts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 05:21 AM
The sequence is ROLES first, then condition, then script. Roles are cached so it's always more efficient to use roles whenever possible.
Docs: Access control rules
Docs: Contextual security
Security Best Practices - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 12:50 PM