and more in a single search tool across platforms. Read the announcement here. |
02/19/2024 08:55 AM
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!
02/19/2024 09:40 AM
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" + ">"}}
02/20/2024 02:44 AM
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!
02/23/2024 12:59 AM
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!
02/25/2024 07:16 PM
try ${user.password}
03/01/2024 02:02 AM
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.
03/01/2024 03:12 AM
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