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

randomPassword causes date variable not to resolve

nvachhani
Regular Contributor II
Regular Contributor II

Below is a disable account JSON for AD, if random password line is removed, the date displays correctly. When it is left in the description is "Terminated by Saviynt on ${new java.text.SimpleDateFormat('yyyy-MM-dd').format(new Date())}" instead of "Terminated by Saviynt on 2024-05-28"

 

{
"userAccountControl": "514",
"description": "Terminated by Saviynt on ${new java.text.SimpleDateFormat('yyyy-MM-dd').format(new Date())}",
"moveUsertoOU": "OU=TermedUsers,DC=company,DC=com",
"deleteAllGroups": "No",
"password": "${randomPassword}",
"msExchHideFromAddressLists": "TRUE"
}

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Try alternative of new method

https://forums.saviynt.com/t5/identity-governance/need-help-to-set-time-in-mulesoft-target/m-p/36734...


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

nvachhani
Regular Contributor II
Regular Contributor II

Using the following: 

${Calendar.getInstance().getTime().format('yyyyMMddHHmmss')}Z

 

I still see the same issue. When I remove "password": "${randomPassword}" only then does it work.

Please raise support ticket


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