best place to store REST API username / passwords in ServiceNow?

MG Casey
Mega Sage

I've seen the Credentials WIKI, but it seems more geared toward Orchestration username / passwords.

I'm looking for a better place to store username / passwords for websites that are being accessed using the REST API, and then how to access them in a script.

What does everyone else do?

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

This might help you.


Credential Store in Service-Now - inMorphis



But I guess ServiceNow needs to think on this front and provide something that can serve as a general purpose password store.


View solution in original post

3 REPLIES 3

Kalaiarasan Pus
Giga Sage

This might help you.


Credential Store in Service-Now - inMorphis



But I guess ServiceNow needs to think on this front and provide something that can serve as a general purpose password store.


This looks pretty straight forward - I like the use of storing the credentials sys_id in a property and the script include, plus using an already available form (Credentials form in Discovery application).



Thank you!


sougatac
Giga Contributor

Hi Casey,


You can create a table where the field are 'API name' type= 'URL' , 'USERNAME'   'type=encrypted text'   'Password'   'type=encrypted text' and you should have proper encryption context along with your role. So that your stored username and password cant be accessible to other.



Please check the link below:


http://wiki.servicenow.com/index.php?title=Encryption_Support#gsc.tab=0