Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Encryption of Password2 gives error

js20
Mega Guru

I have subflow which should generate temporary password using Microsoft Azure Active Directory spoke.

After pass generation I would like to encrypt it and send it via email, whos password will be reset next.

 

when using enccryption script:

var Encrypter = new GlideEncrypter();

var encrypted = fd_data._1__generate_random_password.password

var decryptedValue = Encrypter.decrypt(encrypted);

return decryptedValue;

 

in log I see this error:

Access Denied to cryptographic module 'sn_azure_ad_spoke.glide_encrypter'

How to fix it?

or how to send new password via email to user? (his personal email)??

2 REPLIES 2

js20
Mega Guru

Sorry I want tp decrypt.

Appli
Mega Sage

Hi, please check if this support article addresses an issue, reported by you.

Hope it helps