Best practice for handling passwords in Service Catalog requests for external systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello everyone,
I'm looking for best practices when implementing a Service Catalog item that allows users to request a password change for an external system.
My current concern is how the new password is stored within ServiceNow.
As I understand it, even if I use a Masked variable, the value is still stored by the platform (for example, in tables related to catalog item responses such as sc_item_option / item_option_new) and is encrypted at rest.
However, I'm concerned about a scenario where a privileged administrator or developer could create a server-side script and potentially decrypt or retrieve historical password values from previous requests.
Because of this, I'm questioning whether a catalog variable is the right place to collect passwords at all.
My questions are:
- What is the recommended approach for collecting passwords through a Service Catalog item?
- Are Masked variables considered sufficiently secure for this use case?
- Is there a ServiceNow-recommended pattern to avoid storing passwords in request records altogether?
- How do other customers typically implement password-change workflows for external systems while minimizing the risk of password exposure?
Any guidance, design patterns, or real-world implementation examples would be greatly appreciated.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi everyone,
I’m following up as this question is still unresolved.
To narrow down the question, I’m specifically looking for a supported way to capture a new password and send it to an external system without persisting the password in sc_item_option, the RITM, Flow Designer execution details, logs, or ECC Queue records.
Has anyone implemented this pattern successfully, or is redirecting the user to the external system’s own password-reset page generally the recommended design?
Any real-world implementation examples would be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi @ShumaS ,
Thanks for clarifying the requirement. This is an important distinction.
If your security requirement is to ensure that the new password is never persisted in sc_item_option, RITM records, Flow Designer execution details, logs or ECC Queue records, I would avoid using a standard Service Catalog Masked variable.
Even with encryption enabled, a Masked variable stores its value in the platform database, and authorized server-side code can retrieve the decrypted value.
1. Recommended approach – External Password Reset Page
My first recommendation would be to redirect users to the external system's own secure password-reset page.
The process would be:
-
User submits a password-change request through ServiceNow.
-
ServiceNow initiates the reset process or generates a secure, short-lived reset link.
-
The user is redirected to the external system.
-
The external system collects and validates the new password.
-
The external system completes the password change.
-
ServiceNow receives only the transaction status and reference ID.
This keeps the actual password outside ServiceNow.
2. Alternative – Virtual Agent Secure Inputs
If you need to collect the password within a ServiceNow interface, investigate Virtual Agent's secure password input functionality using the password2 field type.
ServiceNow documents that:
-
Passwords are held in server memory.
-
They are passed securely to Flow Designer actions or subflows.
-
Passwords are masked in queues, tables and logs.
However, this is a Virtual Agent capability, not a drop-in replacement for a standard Service Catalog variable. You would need to validate the complete integration path and ensure the password is never copied into persistent records or ordinary flow outputs.
Official documentation:
Virtual Agent – Secure Inputs
Hope this helps! If this resolves your issue, please mark the response as helpful and accept it as the solution.
Regards,
Sandesh Powar
ServiceNow Rising Star