ACL's on Background Scripts

Anubhav24
Mega Sage
Mega Sage

Hi All,

Are ACL's executed when we try to run scripts in Background scripts?

Thanks in advance.

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

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

 

-Anurag

View solution in original post

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

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

 

-Anurag

Thanks a lot Anurag.

Appli
Mega Sage
Mega Sage

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

Hope it helps