
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 05:45 AM
Hi!
I am wondering if the "canRead()" function considers User Criteria when run on a record?
eg; I am looping through knowledge articles to populate a widget and the knowledge articles have "can_read_user_criteria" set on each article. When running "article.canRead()" on each article, is both ACL's and current user criteria evaluated?
Solved! Go to Solution.
- Labels:
-
Platform and Cloud Security

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 05:48 AM
Hi there,
In short: No.
canRead() is just about the Access Controls. Not about the User Criteria. canRead() is only about Glide Record:
https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_GlideRecord-CanRead
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 05:48 AM
Hi there,
In short: No.
canRead() is just about the Access Controls. Not about the User Criteria. canRead() is only about Glide Record:
https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_GlideRecord-CanRead
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 05:57 AM
User criteria refers to knowledge base records that determine the users who can read or contribute to a knowledge base. User criteria definitions:
- canRead - users who can read all knowledge base articles

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 06:30 AM
Is it safe to assume that "$sp.canReadRecord" will check User Criteria?