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.

Location to store credentials for later use in scripts

Andrei Radules1
Giga Contributor

Hello,

I am using a set of credentials in one of my script so that I can retreive some data.

Is there any place in ServiceNow where I can store these credentials so I can just call them in scripts ?

Best would be if they were a Password 2 field type so I can decrypt them in the script only or a password that I can encode.

I am interested if there is any standard place for storing this sort of intro, I would like to not add any fields or make modifications to other tables.

Any ideas ?

Thank you !

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

Use system properties to store the password.

 

You can create a system property record of type password/password2.

 

for more details check the below link:

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/reference-pages/task/t_AddAPropertyUsingSysPropsList.html 

 

-satheesh

 

View solution in original post

5 REPLIES 5

Mike Patel
Tera Sage
If you have orchestration than use below https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/product/discovery/task/t_CreateCredential.html#t_CreateCredential

SatheeshKumar
Kilo Sage

Use system properties to store the password.

 

You can create a system property record of type password/password2.

 

for more details check the below link:

https://docs.servicenow.com/bundle/london-platform-administration/page/administer/reference-pages/task/t_AddAPropertyUsingSysPropsList.html 

 

-satheesh

 

Hello,

I tried to create a system property password2, the problem is when I try to decrypt it, it does not work, it just returns the encrypted string.

Any ideas ?

Here is a link that will always go the latest version of the article linked above:

https://docs.servicenow.com/csh?topicname=t_AddAPropertyUsingSysPropsList.html&version=latest


--------------------------------------------------
Workflow Cowboy
LinkedIn: https://www.linkedin.com/in/dalestubblefield/
YouTube: https://www.youtube.com/@starlordnow