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

Enable account json/ disable account json

Mahendran
New Contributor III
New Contributor III

Hi all have a scenario where we need to disable and enable the users based on the some conditions in AD connection.

In which we are disabling the users based on the condition and in
moveUsertoOU: if(condition){''} else {disable ou}

we need in enable account OU if the user meets the condition, then we don't need to change the OU

can anyone share the example for EnableOU where if the condition1 is meets then no change of OU,

if condition2 is meet then change the OU if condition3 is meet then change to different out?

 

 

1 REPLY 1

rushikeshvartak
All-Star
All-Star

Sample

"moveUsertoOU":"${if (user.customproperty40=='LOA'){'OU=LOA,OU=XX Users,DC=XX,DC=LOCAL'}else if(user.statuskey==0){'OU=Disable Accounts,OU=XX Users,DC=XX,DC=LOCAL'}else{'OU=On Hold User Accounts,OU=XX Users,DC=XX,DC=LOCAL'}}",


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.