Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/06/2023 10:52 PM
We are trying to provision accountExpires of the User's AD account via ADSI connection from Saviynt but it is setting the value as one day earlier in AD. We are using the below code to provision the same:
"accountExpires":"${user.employeeType=='External'?(10000*(user.enddate.getTime() + 11644473600000)) : 0}"
Could you please confirm what should be the correct code. Thanks.
09/08/2023 07:40 AM
Hello @sdey_2023,
Can you please try with this mapping. this will set current time to accountExpires in AD.
"accountExpires": "${(Calendar.getInstance().getTimeInMillis() + 11644473600000L)* 10000L}"
Thanks,
09/11/2023 11:20 PM
Hi Sudesh, we want to set it same as end date. Please note the time zone in the AD server is of EST, and Saviynt is PST time zone.
09/20/2023 01:35 AM
Hello @sdey_2023,
Saviynt is in UTC, you need to modify the below json to set the date the accordingly.
"accountExpires": "${(Calendar.getInstance().getTimeInMillis() + 11644473600000L)* 10000L}"
Thanks.