GlideEncrypter Deprecation - Password Reset Workflow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 06:24 AM
Good morning,
GlideEncrypter Deprecation - KB1320986.
We have the below code in one of our workflows
// The Reset AD activity does not validate for password history requirements.
// As a workaround, a combination of Reset AD and Change AD activities are used.
// The password is first reset to a temporary system generated one, followed by change password.
if(!workflow.inputs.u_password_needs_reset && workflow.scratchpad.enforce_history_policy) {
var autoGenScript = credStore.getAutoGenPasswordScript();
var params = {credentialStoreId : credStore.getId()};
var tempPassword = new global[autoGenScript]().process(params);
workflow.scratchpad.tempPassword = new GlideEncrypter().encrypt(tempPassword);
workflow.scratchpad.tempPasswordNeedsChange = true;
With the deprecation of GlideEncrypter coming in the Zurich release I need to replace this line of code:
workflow.scratchpad.tempPassword = new GlideEncrypter().encrypt(tempPassword);
What can I use in its place?
Any help is appreciated.
Thank you,
Rachel
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 06:40 AM
The KB recommends
var encryptValueForMid = new GlideAutomationEncrypter().encrypt(decryptedValue);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 07:02 AM
Thank you!
The alternatives in the KB were confusing to me.
I will give this a try...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 01:55 PM
Did you find any solutions that work? @rachelconstanti