We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

accountExpires attribute set 2 days prior to enddate in AD

JB
Regular Contributor
Regular Contributor

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 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

JB
Regular Contributor
Regular Contributor

Its EST

JohnLawson
Regular Contributor
Regular Contributor

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
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

JB
Regular Contributor
Regular Contributor

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
If this reply answered your question, please Accept As Solution and give Kudos to help others facing similar issue.

Sivagami
Valued Contributor
Valued Contributor

Timezone of DC and Saviynt both are in EST?