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.

Change Scheduled Job run as field to System Administration?

Aryan
Tera Contributor

Hello All,

I created some scheduled jobs and currently the run as field is showing my name , so as per Best Practice i want to change run as field to "System Administration" user account but the class filed of mu scheduled job records are different like some are scheduled report , Audit , Script execution. 

 

So is it okay if I can change the run as field to "System Administration " user account ??

Can someone help me on this!!

3 REPLIES 3

swathisarang98
Giga Sage

Hi @Aryan ,

 

Yes it should be fine to remove your name and run as 'system administrator' , it is not recommended to use any user account as user account may get inactive in future and the scheduled job might not run .

 

please refer the below article related to schedule job,

https://www.servicenow.com/community/developer-forum/how-to-find-the-best-user-account-for-run-as-in... 

https://www.servicenow.com/community/csm-forum/what-is-the-best-practice-on-fix-scripts-scheduled-jo... 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

Amit Verma
Kilo Patron
Kilo Patron

Hi @Aryan 

 

I don't think it would be an issue if you switch to System Admin account. Although, you can also make a Service Account with the required roles and permissions and configure the scheduled job to run under that account. Refer below post which might be helpful :

https://www.servicenow.com/community/developer-forum/best-practice-for-scheduled-jobs-and-the-runas-...

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

MayuriSurap
Tera Contributor

Hello All, 
I have also created scheduled jobs where the run as is showing my name and want to change it to System administrator, but I am unable to modify in scheduled job. So just wanted to know how can we make changes.
Can someone please help!