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

Enable account password is not getting passed in the email template

GPS
New Contributor II
New Contributor II

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
Valued Contributor II
Valued Contributor II

Hi @GPS , try ${password}

GPS
New Contributor II
New Contributor II

@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 you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

GPS
New Contributor II
New Contributor II

@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 you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.