I have my user profile synchronization setup and working but I have noticed that disabled users who no longer work for my company are showing up in the sync. I would like to update the sync so that it only pulls in active users.
1 Answer
I found my solution from this blog.
Go to your Central Admin website
Go to "Application Management"
Go to "Service Applications -> Manage Service Applications"
Click on "User Profile Service Application"
Click on "Synchronization -> Configure Synchronization Connections"
Click on your connection and select "Edit Connection Filters" from the menu
Add a new Exclusion Filter for Users and select "userAccountControl" as the attribute, "Bit on equals" as the operator, and "2" as the filter. Make sure also that you correctly have AND and OR selected if there are any other exclusion filters already there.
userAccountControl Bit on Equals 2
Click "OK"
The next time that it syncs your disabled accounts should be gone.
-
1I did it but after a Full-Synch I can still see disabled users. (from "Profiles Missing from Import" view). (SP2013)– Nk SPCommented Nov 10, 2014 at 15:44
-
Make sure you select "bit on equals", not just "equals". Commented Aug 6, 2016 at 5:04
-