Pages

Sep 9, 2009

Filtering Disabled Accounts with User Profile Import....!

Finally managed to filter out all disabled accounts when importing from AD. Using the search filter
(&(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))

After doing this i had to delete the users that came up with a “not found error” next to their names and finally go into search settings, reset the crawl settings, and then start a full crawl to re-import all search data. This has finally removed all disabled users from the search function.