Hi!
I need to move user account to "Disabled" OU and disable it (uac=514) when user is deleted from HR DB.
Now I have a sync rule which can make user active or inactive depends of it status field in HR DB by this sync rule (0=Active, all another values=disabled)
It is like this:
IIF(Eq(employeeStatus,"0"),512,514)-userAccountControl
and I have a location sync rule flow like this:
IIF(Eq(employeeStatus,"0"),"cn="+displayName+",OU=Active,OU=....",IIF(Eq(employeeStatus,"2"),"cn="+displayName+",OU=Active,OU=.....",IIF(Eq(employeeStatus,"3"),"cn="+displayName+",OU=Active,OU=....",IIF(Eq(employeeStatus,"1"),"cn="+displayName+",OU=Disabled,OU...","cn="+displayName+",OU=Disabled,OU=...."))))
->dn
I have found this thread:
https://social.technet.microsoft.com/Forums/en-US/0729c303-b3c2-4be4-bbbc-f81382671303/disable-a-user-from-ad-if-it-removed-from-source?forum=ilm2
There is recomendation to use such sync rule:
IIF(IsPresent(EMPSTATUS),512,514) => userAccountControl"
But I need to check value of EMPSTATUS
and it can have not only one value. User can be active or at sick leave and this status not only 512.
So I need to construct more complicated expression to handle this.
I have a such questions:
1. How I can disable and move user to "Disabled" OU ?
2. What will happened if my user was deleted in HR DB by mistake and at next sync cycle it will be in active state in HR DB?
3. Is my service (or manually created in FIM Portal) accounts will not be disabled? They are not in HR DB, so they will not be connected and disabled by this rules, right?
4. How I can delete this user from all groups?
Thanks!
1