- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 08:36 AM
Hello,
Currently we store the password2 field value in system property and using the GlideEncrypter to decrypt the value. Since ServiceNow is going to deprecated the GlideEncrypter in future, we need to find the solution how to decrypt the password2 value from system property?
var encryptedPass = gs.getProperty('abc');
var decryptedPass = encryptedPass.getDecryptedValue();
gs.info (decryptedPass);
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 08:17 PM
Hi @Bird1
Suppose I have a system property of type Password2 to store Server Password :
If I want to retrieve the password in plain text from this system property, I can make use of below code :
var decryptedPassword = gs.getProperty('serverPassword');
gs.info(decryptedPassword);
Output :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 08:52 AM
Have you reviewed the docs here
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1320986
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 06:54 PM
Already reviewed but could not get the solution, so I post this topic for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 08:17 PM
Hi @Bird1
Suppose I have a system property of type Password2 to store Server Password :
If I want to retrieve the password in plain text from this system property, I can make use of below code :
var decryptedPassword = gs.getProperty('serverPassword');
gs.info(decryptedPassword);
Output :
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 08:33 PM
Thanks Amit. It's very simple and I was overthinking.