Query_Range acl
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 12:01 PM
Hi,
I have a doubt about query_range ACLs in code. How can we determine whether we should check canRead() or query_range?
Suppose a table has both read and query_range ACLs. Now, in code, if we have something like:
var gr = new GlideRecord('table_name');
gr.addQuery('some_field', value);
gr.query();How do we decide whether to check canRead() or query_range?
Also, is there anything in GlideRecord, like canRead(), that lets us check for query_range ACL specifically?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2025 02:19 PM
Hi @EshikaAgrawal
May this post helps you with you question
https://www.servicenow.com/community/developer-blog/query-acls/ba-p/3273676
If you found this response helpful, please mark it as Helpful. If it fully answered your question, consider marking it as Correct. Doing so helps other users find accurate and useful information more easily.
