01-05-2023 04:02 AM - edited 01-05-2023 04:03 AM
Hello Team,
We are we are passing enddate to accountExpires AD Attribute. But in AD its setting 2 days before date.
Ex: If we passed April 30 it will set April 28 as accountExpires in AD. We want to set April 30 as the accountExpires in AD.
Json we are using is "accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 86400 + 11644473600000)} else {'0'}}"
Requesting assistance here.
Best Regards,
Jithin B
01-05-2023 04:09 AM
What’s time zone of dc
01-05-2023 06:11 AM
Its EST
01-09-2023 12:00 PM
We've been using ((user?.enddate.getTime()+11644473600000) * 10000)
01-09-2023 12:12 PM
Are you facing any issue with below setting?
"accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 11644473600000)} else {'0'}}"
01-19-2023 09:36 PM
Hello Team,
I have tried with following Jsons but still it showing 1 days difference. Can anyone help here ?
"accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 11644473600000)+ 216000000000 + 86400} else {'0'}}"
}
"accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 11644473600000)+ 216000000000} else {'0'}}"
}
Regards,
Jithin B
01-20-2023 01:26 PM
What is the behaviour if you don't add additional time frame instead just pass the current time like below?
"accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 11644473600000)} else {'0'}}"
01-23-2023 12:29 PM
Timezone of DC and Saviynt both are in EST?