Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Unable to send password in email notification after Password Reset by Admin

Bharadwaj
Regular Contributor
Regular Contributor

Hi,

We have a requirement as mentioned below:

1. Send out email notification to end user WITH password when password has been reset by an Administrator.

2. Send out email notification to end user WITHOUT password when password has been reset by self.

 

We have defined the email template at Password policy "USER" level.

We have defined a conditional statement in the email template where in we have defined a binding variable, mentioned below:

<% if (changedBy.username == user.username) print "This is to notify that your password has been updated successfully. Please reset your password." else print "This is to notify that your password is reset. Password: ${password} "%>

However, in the email the user receives after password has been reset by an Admin, we do not see the password being displayed. 

Is there any other binding variable that needs to be used to display the password in this scenario?

P.S: I have gone through the official documentation(https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter06-EIC-Configurations/Creati...) and used the attributes accordingly.

Thanks!

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

Can you share output of below To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:


${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak ,

Thanks for the inputs.

Please find the required response. As you can see, password value is blank.

 

This is to notify that your password has been updated successfully.Password: . Please reset your password.password = br> beneficiary = 0031tstbr> changedBy = 0031tstbr> userEmail = LISA.h@XXXXbr> user = 0031tstbr> users = 0031tstbr> manageremail = br> out = java.io.PrintWriter@19e8db13br>
[password:, beneficiary:0031tst, changedBy:0031tst, userEmail:LISA.h@XXXX, user:0031tst, users:0031tst, manageremail:, out:java.io.PrintWriter@19e8db13]
If you need assistance please email us at am-support@XXX.

 

Thanks!

Bharadwaj
Regular Contributor
Regular Contributor

Hi,

Based on the above output, attribute used for password is "password". When we used "${password} " attribute in the email template, we do not see any value in the output.

Is this a bug? Please let me know.

Thanks!

try ${user.password}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi @rushikeshvartak ,

I have tried this and it sends password in an encrypted format, as expected, because this attribute reads the value from "password" attribute of users table.

 

 

Darshanjain
Saviynt Employee
Saviynt Employee

Hi @Bharadwaj 

As discussed,

 

please check these variables as per your use case:

Account Password = ${account_password}
Task Password = ${task?.password}
Random Password: ${randompassword}

 

Thanks

Darshan