I have been struggling to put together an effective LDAP filter/query for the purpose of importing specific user profiles into SharePoint.
I've been using both the Advanced Search feature of Active Directory Users and Computers and LDIFDE to see what results are being returned, but I am obviously missing something because I'm either getting NO results or TOO many.
In a nutshell, I need two LDAP queries which return:
1) Active users who belong to "Security Group A" AND to the "Office" OU (or any sub OU/branch of "Office")
2) Active users who DO NOT belong to the 'Users' built-in container (or any of the sub-containers/branches of "Users" - these were created when we migrated from Exchange 2000 to 2003)