ACL vs. User Criteria: Why use User Criteria if ACLs already handle row-level security?

the_madhankumar
Mega Contributor

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:

  1. 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?

  2. 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!

2 REPLIES 2

HasanM
Kilo Sage

Hi @the_madhankumar 

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:

  1. 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.
  2. 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.

glideFather
Tera Patron

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

glideFather_1-1795518096789.png

 

Knowledge bases:

Can Read / Can Contribute

Cannot Read / Cannot Contribute

glideFather_0-1795518016729.png

 

 

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

glideFather_2-1795518156423.png

 

- ACLs can be debugged with "Access analyzer":

glideFather_3-1795518175497.png