How to send Decrypted Password from ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 03:23 AM
Hello Community,
We have a requirement to send the generated password to users after they click "Set Password" on the contact record. However, the password is stored in an encrypted format in the user_password field. Currently, we are sending the encrypted password, which prevents users from logging in.
Here’s the script we are using: Before update BR
gs.eventQueue("new.contact.password.set", current, current.user_password, current.email);
Since ServiceNow encrypts passwords and does not allow decryption, what would be the best approach to send a usable password to users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2025 09:34 AM
Hello @Hemasundar_B
Sorry, you cannot! explained here: https://www.servicenow.com/community/service-management-forum/how-to-decrypt-password-which-is-of-ty...
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2025 12:19 AM
Is there an alternative way to send the actual password to the user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2025 06:19 AM
Hello @Hemasundar_B
Capture the username and password in a pdf and attach it to the e-mail.
Hope that helps!