Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Enable account password is not getting passed in the email template

GPS
New Contributor III
New Contributor III

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.

6 REPLIES 6

NM
Honored Contributor II
Honored Contributor II

Hi @GPS , try ${password}

GPS
New Contributor III
New Contributor III

@NM 
${password} will not work. I tried it out already.


SumathiSomala
All-Star
All-Star

@GPS did you try

 ${task.password} 

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

rushikeshvartak
All-Star
All-Star

Since password has been generated here in JSON it may not be available on variable.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

GPS
New Contributor III
New Contributor III

@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.

Its looks like limitation please raise support ticket


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.