accountExpires attribute set 2 days prior to enddate in AD

JB
New Contributor III
New Contributor III

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

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

What’s time zone of dc 

JB
New Contributor III
New Contributor III

Its EST

JohnLawson
New Contributor III
New Contributor III

We've been using ((user?.enddate.getTime()+11644473600000) * 10000)

sk
All-Star
All-Star

Are you facing any issue with below setting?

"accountExpires": "${if(user.enddate != null){10000*(user.enddate.getTime() + 11644473600000)} else {'0'}}"

Regards,
Saathvik

JB
New Contributor III
New Contributor III

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

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'}}"


Regards,
Saathvik

Sivagami
All-Star
All-Star

Timezone of DC and Saviynt both are in EST?