Click HERE to see how Saviynt Intelligence is transforming the industry. |
12/29/2023 06:50 AM
I am trying to send the username and password of a user to their email immediately after onboarding to Saviynt. I used user update rule to do so. In the mail I am getting the username properly but getting the encrypted version of the user password. I used ${user.password} in the email template. I am getting the password like: "$2a$10$fwntoXbq4hvhpghhEyE00.DX3iW2gKzhYAkwCB3zKCY0bxEm5du4O". Also when I want to set the account password same as the user password while creating an account in AD, I am facing the same issue, the enoded password is being set as userPassword for AD account too.
12/29/2023 09:58 AM
You won’t be able to set user’s password to account .
in email use ${password}
01/02/2024 12:10 AM
You Can use the below sample in the email to share the email with password:
Hello ${user.firstname} ${user.lastname}
This is to notify that your password is reset by - ${changedBy.firstname} ${changedBy.lastname} (${changedBy.username})
<% if (changedBy.username==user.username)print ""
else print "New password is - ${password}"%>
02/05/2024 03:57 AM
Hi @adarshk , sorry for the late reply, tried using ${password}, but the email isn't getting triggered, but without using the variable ${password} the email is getting triggered but unable to retrieve the password.
02/05/2024 07:43 PM
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" + ">"}}