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.

How to run script as admin?

dianemiro
Kilo Sage

Hi Everyone,

We have a workflow in Requested Item that starts with a run script to query for servers. Workflow is running as expected when opening as admin but when end-users, it is not executing. How to run the workflow as admin?

Thanks,
Diane

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Do you mean, that when an end-user enters a catalog item, that the workflow is performed under that end-user?

As workaround, you could add a 1 second timer. After that timer, the workflow will continue to run under system instead of the user that entered the catalog item.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

8 REPLIES 8

Hi Asinoof,

I already tried adding a timer activity of 30 seconds before the run script activity in my workflow but still, it is not working. Do you have any other suggestions?

Thanks,
Diane

 when you say it did not run as admin, how are you concluding it?

Akhil Vinay Ma1
Kilo Guru

Hi Diane,

 

Did you publish the workflow? before testing with ESS user?

Yes, I published it before testing with ESS.