“Hidden” scripts in ServiceNow

I had an interesting experience recently. I was working on an ACL, and my initial approach involved adding a script to the ACL. As I continued working on the story that required the ACL, I unchecked the ‘advanced’ checkbox on that ACL, and then tested the user’s access again.

Much to my surprise, I realized that the script was still running even though the ‘advanced’ checkbox was no longer checked.

As nearly as I can tell, the checkbox hides the script from the user, but it’s still running even though the script is hidden.

My expectation was that unchecking the box disabled (but didn’t delete) the script, but that appears to be wrong, so make sure if you want a script not to run that you clear out the editor rather than just unchecking the box.

Leave a Reply