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.



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


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


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=


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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