Credentials Update via Workflow

Andreas Cierpka
Kilo Guru

We do have an external tool to manage robotic accounts. The toll will create the robotic account name as well as the robotic account name passwort. 
Part of this process is to create the user and add it to our LDAP, CyberArk and to a Jenkins Folder.

 

When the passwort exires the owner of the robotic account is bing notified and starts the process to update the credentials.

As we do have some of these robotic accounts integrated into ServiceNow by the PW change the service they offer will be blocked.

Is there a best practice in ServiceNow how to do this? I was thinking of using a Jenkins Pipeline which is monitoring the Jenkins Folder and sending an update to ServiceNow. If doing this which table in ServiceNow is holding the credential information?

AndreasCierpka_0-1704964207332.png

 


 

1 REPLY 1

Amit Verma
Kilo Patron
Kilo Patron

Hi @Andreas Cierpka 

 

The table "discovery_credentials" holds the information about the credentials. You can take reference of the below background script and configure a flow in ServiceNow that can be used to update the credentials as and when their is an update.

 

var gr = new GlideRecord('discovery_credentials');
gr.addQuery('name','Your credential record name');
gr.query();
if(gr.next()){
gr.user_name = 'your username'; //ensure that you give the account name in the format domainName//accountName. Note the extra / which is used to escape the other /
gr.password = 'your password';
gr.update()
}

 

Thanks & Regards

Amit Verma


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