Deprecated GlideEncrypter & .getDecryptedValue() - what alternatives ServiceNow proposes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 02:22 PM
We have username and password field. We use to read the password field value via .getDecryptedValue() method.
Tokio release. Suddenly .getDecryptedValue() stopped working.
============(A):
After googling all over internet, I figured out that we could try using GlideEncrypter:
https://developer.servicenow.com/dev.do#!/reference/api/vancouver/server_legacy/GlideEncrypterAPI
however as you can see it is about to be deprecated and when I tried using it - it throws following error:
JavaException: java.lang.SecurityException: GlideEncrypter is not allowed in scoped applications
============(B):
Another option I found is to try using
global.GlideCryptoModule.getModule('global.acme_mod');
However it also didn't work.
So does anyone knows a solution to this? Any alternative for deprecated functionality?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 09:17 PM
Hi there,
Any alternative? Yes. In the communication records ServiceNow send to customers, the KB article on the Support Site (you need to be logged in for that) with details and alternatives is mentioned.
If you want 1 on 1 comparissions, you might want to locate an out-of-the-box script using GlideEncrypter, and compare it between a Vancouver instance and a Washington instance. As ServiceNow will update all untouched out-of-the-box scripting using this.
One more thing to add on this:
- 2024-01-15 - Article - GlideEncrypter API not permitted beginning with the Xanadu release
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 10:06 AM
So, in Simple words - how would sound your answer?
We have a field of Password2 type on a Table and we use to leverage getDecryptedValue .. however since recentrly it stopped working and we can't really make it work properly now.
so we checked cross scope records - there is GlideElement.getDecryptedValue but it does not help
then we checked Module Access - all records in Tracking mode - still no result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 07:11 AM
I have the same problem, did you manage to solve that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2024 10:59 PM
We ended up recreating the field