Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Restriction of running a background script

Evren Yamin
Tera Contributor

Hello All,

I have a requirement to restrict admin users to make changes on a user table and that includes restricting them to use a background script update the sys_user table.

Is there a way to do this? Can we restrict admin users to run a background script on a user table?

Thank you.

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Evren Yamin 

what's the business requirement?

You cannot use ACL for this as GlideRecord don't respect ACLs

It's difficult to determine in before update BR on sys_user table if the update is happening from background script or from some other place.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Enrique Collazo
ServiceNow Employee

This mite be helpful:

 

"By default, administrators can access this module without elevating privileges. If you want to require elevated privileges to access this module, set the system property glide.script_processor.admin to security_admin."

 

https://docs.servicenow.com/bundle/tokyo-application-development/page/script/server-scripting/concep...