SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to filter out a subset of users in Active Directory from being pulled into the User Profile Service. The users need to be filtered by the Organizational Unit property (ou), which is also present in the Distinguished Name property (dn).

So I'm trying to do this by editing the connection filters on my AD User Profile Synchronization Service connection, however I can't get it to work using an ou Contains blah filter. "dn" is not an option in the drop down to filter by.

How can I prevent these users from being imported?

share|improve this question
up vote 0 down vote accepted

I rectified this by editing the User Profile Service Synchronization Connection to Active Directory (Central Admin > Manage Service Applications > User Profile Service > Configure Synchronization Connections > Select Connection > Edit).

Then I just deselected the specific OUs in the Containers window. It takes a few seconds (or sometimes 20) to load once you click to deselect the OU so be patient. It's working on it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.