Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Script Include no running

Garvia
Tera Contributor

I have a Client Script and a Script Include, but I'm having an issue because the Script Include seems to only execute when I am an admin. If I impersonate another user, the logs I have in the Script Include do not appear. Does anyone know why I might be experiencing this issue? Thanks in advance!

8 REPLIES 8

maheshkhatal
Mega Sage
Mega Sage

@Garvia 

The ACLs on this script include is the permit. You can delete the ACLs(which is not good practice but at least you can have sigh of relief) or add required roles for the groups where user belongs to.

See the screenshot I took to help you gain understanding.

script_inc_issue.JPG

 

Accept this as solution. If my response helped resolved your doubt please mark it as helpful.

Thank you,

Mahesh

I dont want to delete any ACL

then make sure user you are impersonating has access to it.(user should be part of that group where role is admin)

 

Thank you,

Mahesh.

Sourabh Tarlekr
Kilo Sage

Hi @Garvia 

 

Please check if you have added admin as a role to run the script include while creating it as below:

 

SourabhTarleka_1-1739971951711.png

 

Regards,

Sourabh