We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Users should move to some OU if already disabled

Diptansu11
New Contributor III
New Contributor III

We had a requirement to move user into leavers OU on disablement of AD account we have done the logic using DISABLEACCOUNTJSON logic. but now we want if user is already disabled state while AD account import then it should move to leavers OU directly. Please suggest how to do that. 

2 REPLIES 2

SumathiSomala
All-Star
All-Star

@Diptansu11 Update any users custompropertyXX

and create one user update rule -if user's custompropertyXX is updated then perform update account task for AD.

Use moveUsertoOU mapping in your AD update account JSON 

Sample:

"moveUsertoOU": "${if(user.customproperty7.equals('Yes')&& user.statuskey ==1){'OU=XX,OU=XX Users,DC=XX,DC=LOCAL'}else if(if(user.customproperty8.equals('Disabled')&user.statuskey ==0){'OU=On disabled Accounts,OU=XX Users,DC=XX,DC=LOCAL'}else{'OU=Saviynt_Test,OU=Test Users,OU=XX Users,DC=XX,DC=LOCAL'}}"

Enable/check below config in global configuration

SumathiSomala_0-1700558361038.png

 

 

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

Thanks just that here we need to check if ADaccount status for that user is already DISABLED then move to leavers OU while importing itself. Any suggestion to do this?