Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/11/2024 12:19 PM
Hello Team,
I am trying to pass a constructed password on the AD enable account via email template. It gives me a random password on email template, but the account is getting passed with the constructed password.
Enable account:
{
"USEDNFROMACCOUNT": "YES",
"MOVEDN": "YES",
"ENABLEACCOUNTOU": "OU=Support,OU=Users,OU=P,DC=corp,DC=net",
"AFTERMOVEACTIONS": {
"userAccountControl": "512",
"Password": "${'PCo' + (new Date().month + 1).toString().padLeft(2, '0') + new Date().format('yy') + (1000 + new Random().nextInt(9000)) + '!'}"
},
"REMOVEGROUPS": "NO"
}
Email Template:
<p>A new user account has been created for the following application: ${task?.endpoint?.endpointname}. Please find your first time password below:</p>
<p>Password: ${randompassword}</p>
<p>Password1: ${task?.password}</p>
<p>Password3: ${account_password}</p>
Output of the email:
A new user account has been created for the following application: Corp_AD_Prod. Please find your first time password below:
Password: vqq%we3dfMsgsqyic
Password1: vqq%we3dfMsgsqyic
Password3: vqq%we3dfMsgsqyic
Password on the account:
PCo0624XXXX!
I want to use my constructed password getting passed on the email template for enable account.
Best regards,
Sam.
06/11/2024 01:31 PM
Hi @GPS , try ${password}
06/12/2024 08:31 AM
@NM
${password} will not work. I tried it out already.
06/13/2024 02:44 AM
@GPS did you try
${task.password}
06/13/2024 10:00 PM
Since password has been generated here in JSON it may not be available on variable.
06/17/2024 07:54 AM
@SumathiSomala
I tested it.
@rushikeshvartak
We can get it on the create account. Why can't we get it on the enable account?
Best Regards,
Sam.
06/17/2024 07:15 PM
Its looks like limitation please raise support ticket