Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Saviynt AD Job not expiring account on AD

PA
New Contributor III
New Contributor III

Hello,

We have an AD job that triggers UpdateAccountJson to expire account on AD based on term date. But the accounts are not getting expired on AD. The UpdateAccountJson in connection is as follows:

{
"accountExpires": "${(10000 * (user.termDate.getTime() + 11644387200000)) }"
}
Can you please confirm if this is the proper set up?  Jobs and json screenshots attached.
6 REPLIES 6

PA
New Contributor III
New Contributor III
 

SB
Saviynt Employee
Saviynt Employee

Can you try with the below

{
"accountExpires": "${(10000 * (user.termDate.getTime() + 11644387200000)) }"
}


Regards,
Sahil

PA
New Contributor III
New Contributor III

This looks exactly like the configuration I used.

SB
Saviynt Employee
Saviynt Employee

Sorry, looks like I pasted the wrong value. Please try the below

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


Regards,
Sahil

PA
New Contributor III
New Contributor III

I used the following JSON. The task got triggered but it actually disabled the account in AD while we only wanted to expire the account. 

{
"accountExpires": "${user.termDate!=null ? 10000 * user.termDate.getTime() + 11644473600000 : 0}"
}

Any suggestion on the configuration only to expire the account?

 

 

SB
Saviynt Employee
Saviynt Employee

are you still facing this issue or was it resolved.


Regards,
Sahil