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

AD Account expiry is not updating into AD from Saviynt

Sreejith
New Contributor III
New Contributor III

Hi Team,

We have usecase when ever ENDDATE is passed we will computed enddate as blank and it should updates account expiry as never at AD target.

Note: Tasks are created and completed but its not updated at target.

See AD Updatejson :

 "accountExpires": "${if((user.employeeType.equals('Contractor'))&(user?.enddate!=null)){10000*(user?.enddate.getTime()+11644473600000+18400000)} else {'0'}}",

3 REPLIES 3

DixshantValecha
Saviynt Employee
Saviynt Employee

Hi @Sreejith,

We are checking on your request and we will keep you posted.

DixshantValecha
Saviynt Employee
Saviynt Employee

Hi @Sreejith,

Kindly try below Json and please share the screen shot of the logs:-

"accountExpires": "${if((user.employeeType.equals('Contractor'))&(user?.enddate!=null)){'0'} else {10000*(user?.enddate.getTime()+11644473600000+18400000)}}"

rushikeshvartak
All-Star
All-Star

{
"accountExpires": "${if((user.employeeType.equals('Contractor')) && (user?.enddate != null && !user?.enddate.equals(''))){10000 * (user?.enddate.getTime() + 11644473600000 + 18400000)} else {0}}"
}


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