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 want to import accounts in specific OU's and not the whole Active Directory. I have created the connection to AD and everything is working well. I'm sure it is possible to import specific accounts in specific OU's using the 'User Filter' and creating new query clauses, here lies my problem. I have no idea on the syntax I should use.

Any help would be great, even a link to a good article/blog.


share|improve this question
up vote 0 down vote accepted

There is some info here along with some additional links on the LDAP filters.

Here is another blog I found helpful: MOSS Profile Search LDAP query to remove disabled and service accounts

share|improve this answer

Funnily enough I was listening to a podcast from Todd Klindt yesterday and he was talking about a client which wanted to remove profiles for Conference and Meeting Rooms from the SharePoint User Profile Import Process.

He suggested using the AD Users and Computers MSC and using the AD saved query tool which sits at the top. I do remember using it a few years ago when I was playing around with MS Exchange. Anyway I will leave it to him to take you through it:-

Using ADUC to configure SharePoint Profile Import

share|improve this answer

Here is what I did. I had the AD folks populate the EmployeeID field in AD with the Employee's ID from our SAP. I then added a filter to synchronize only active employees.

UserProfile Synchronization Connection Filters

  1. User is Not Disabled
  2. User has an E-Mail Address
  3. User has an Employee ID


Just remove that last asterisk from employeeID=


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.