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

randomPassword causes date variable not to resolve

nvachhani
Regular Contributor
Regular Contributor

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

nvachhani
Regular Contributor
Regular Contributor

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