ACL vs. User Criteria: Why use User Criteria if ACLs already handle row-level security?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi everyone,
I am trying to build a clear mental model of when to use ACLs versus User Criteria in ServiceNow.
Here is how I currently understand them:
ACLs secure data at the table, row, and field level (backend and database security).
User Criteria controls visibility and availability for Service Catalog items and Knowledge articles (commonly used in the Service Portal).
Since ACLs can already enforce row-level security using conditions or scripts, why do we still need User Criteria? Specifically:
What happens in practice if someone tries to use row-level ACLs on the Knowledge (kb_knowledge) or Catalog Item ( sc_cat_item ) tables instead of User Criteria?
Aside from letting non-admins (like Knowledge or Catalog Managers) manage access without editing ACLs, are there performance, caching, or platform behavior reasons why User Criteria is preferred?
Would appreciate real-world examples or best practices on how you separate the two!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
35m ago
They do different jobs and work together.
ACLs secure data. They control who can read or write a table or field, everywhere (lists, forms, APIs).
User Criteria control content visibility. They decide who can see a catalog item or knowledge article in the portal, catalog, knowledge base and search.
On your questions:
- Read ACLs on kb_knowledge or sc_cat_item are checked record by record after the query runs. That leaves gaps in pagination and wrong counts ("rows removed by security constraints"). Also, the catalog and knowledge widgets, typeahead and AI Search are built to check User Criteria, so ACLs alone can give inconsistent results.
- Yes, there are platform reasons. User Criteria results are cached per user session, and they are evaluated where the content is queried, not record by record afterwards. That makes them faster for large catalogs and knowledge bases. They can also be reused across many items and knowledge bases, so you don't need a script per record.
Best practice: use User Criteria for "who can see this item or article", and keep ACLs for table, field and role-level security. Avoid custom row-level read ACLs on these tables unless you have a strict data-security need.
If this helped, please mark it as the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9m ago
ahoy @the_madhankumar,
User criteria gives your users permission to catalog items (they either see it or not based on the defined conditions) or knowledge bases or articles (permission to read and contribute).
Catalog items:
Available For
Not available For
Knowledge bases:
Can Read / Can Contribute
Cannot Read / Cannot Contribute
While ACL gives you more options - permissions to create, view, update, delete records, to see report views, to update in a list views etc. And these permissions are on table level (you can restrict tables) or field levels.
Example of user criteria:
- user criteria "Users with itil role" or "User from Portugal" (regardless their role), ...
- apply this user criteria to catalog items and knowledge articles
Example of ACL:
- user with itil role can see all incidents
- Category field to be visible by incident admins only
- Category field to be editable by admins only
For debugging:
- user criteria can be troubleshot from "User Criteria Diagnostics"
- the very same user criteria can be used for both - cat items and kb articles, no need to create the same criteria per each
- ACLs can be debugged with "Access analyzer":