Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

accountexpires attribute not setting correct timestamp in AD

manish97sh
New Contributor III
New Contributor III

We are trying to set accountexpires attribute in AD with enddate of user. If enddate of user is 19th feb then it should expire at the end of the 19th feb i.e., 19-02-2024 11:59:00. But in our case it is setting accountexpires as 19-02-1024 00:00:00 and will expire account on the start of 19th feb and not on end of 19th.

Please find our configuration JSON below:

attrs.put('accountExpires', user.enddate==null?'9223372036854775807':(10000*(user.enddate.getTime() + 11644473600000)));

i also tried by adding 2359 in offset value as below but it didn't worked and still showing accountexpires as 19-02-2024 00:00:00

attrs.put('accountExpires', user.enddate==null?'9223372036854775807':(10000*(user.enddate.getTime() + 11644473600000 + 2359)).toString());

Who Me Too'd this topic