Support Center

Only import users that belong to specific AD groups

Last Updated: Oct 28, 2014 10:21AM PDT
WebSpy Vantage has some useful 'Quick Queries' to import users from your directory into Vantage's own Organization structure. These queries take care of the situations mentioned in our article Useful LDAP Queries.

However, what if you want to only import users that belong to specific security groups? Let's say you only want to import users from the Distribution, Marketing and Admin groups. Here's the LDAP Query you need (uses a directory DC=winlab, DC=local)

(&(|(memberOf=CN=Distribution,CN=Users,DC=winlab,DC=local)(memberOf=CN=Marketing,CN=Users,DC=winlab,DC=local)(memberOf=CN=Admin,CN=Users,DC=winlab,DC=local))(objectClass=person)(objectCategory=user))


Translated: Get all objects where objectClass=person and objectCategory=user where the users are a member of Distribution, Marketing or Admin groups.

Notice that you need to specify the full DN of the group. The easiest way to find the full DN is to use adsiedit.msc to browse your directory and view the properties for the group. Unfortunately Active Directory Users and Computers does not surface this information.

 

Contact Us

support@fastvue.co
http://assets2.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete