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.

Certification Tasks "created by" is not the policy defined "Run as" user

jimmillet
Mega Guru

In our Certification Policies we had "Run As" set to the out of box user named "DataManager Job Runner". The schedules are also set to execute "On Demand". So this week we opened the schedule and clicked Execute Now to create the certification tasks, and the "created by" for the task is set to the user that created the policy (even for one person that left and his ID is in active). We expected the created by to be "DataManager Job Runner".

2 REPLIES 2

GlideFather
Tera Patron

Hi @jimmillet,

 

do I understand it correctly that when it is manually executed, then the created by is the name of the person who performed the execution? 

 

And if it is auto-executed, then the created by?

 

If so, then instead of Execute now, you can change the trigger to some date in a few seconds/minutes from now, let it execute and then keep the original value..

_____
No AI was used in the writing of this post. Pure #GlideFather only

No, the "created_by" for the certification task is the person who "created" the certification policy. In our case this person has left the company and his SN ID is inactive. So it was a surprise that his name was set as the "created_by" for the certification task when the schedule was run! We set the "Run As" in the certification policy to be this ID - "DataManager Job Runner", so we expect "created_by" to be the "DataManager Job Runner" ID.

 

 

Here are some screen shots that may help. One screen shot is showing list view for some certification tasks and you can see my ID as the "Created by". 

jimmillet_0-1763930566164.png

 


The next screen shot shows the "Run as" that we set in the certification policy. We expected this ID to be the "Created by" for the certification tasks.

jimmillet_1-1763930743070.png

The last screen shows the record for this DataManager user in the sys_user table:

jimmillet_2-1763930850636.png