Sometimes we want SharePoint to import only the user profiles of those user that belong to one specific Active Directory group. In this case we have to modify the import connection query expression in Shared Services Provider.
In this case we want all the users of the group Employees (in Groups OU) of the contoso.com domain to be imported:
(&(objectCategory=Person)(ObjectClass=*)(memberOf=CN=Employees,OU=Groups,DC=contoso,DC=com)
what if i only want to import all users in a container called “Sharepoint”?
You can use the same query but change CN into OU:
(&(objectCategory=Person)(ObjectClass=*)(memberOf=OU=Sharepoint,DC=contoso,DC=com)