Click HERE to see how Saviynt Intelligence is transforming the industry. |
02/27/2024 01:53 AM
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());
Solved! Go to Solution.