- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 12:24 AM
Hi All,
Are ACL's executed when we try to run scripts in Background scripts?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Script Debugger
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 12:52 AM
Hi,
Its not about Background script. GlideRecord Query in general don't consider ACLs. So you should use GlideRecordSecure instead.
Here is a good read on the matter
GlideRecord vs GlideRecordSecure (servicenow.com)
Glide Server APIs | ServiceNow Docs
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 12:52 AM
Hi,
Its not about Background script. GlideRecord Query in general don't consider ACLs. So you should use GlideRecordSecure instead.
Here is a good read on the matter
GlideRecord vs GlideRecordSecure (servicenow.com)
Glide Server APIs | ServiceNow Docs
-Anurag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2022 06:58 AM
Thanks a lot Anurag.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2022 12:52 AM
Hi, please see KB - Scripts (including Background Scripts) that leverage ServiceNow's server-side JavaScript API classes to create, read, update, and delete records are not subject to passing or failing Access Control Rules (ACLs). The GlideRecordSecure class is the exception to this.
Hope it helps