Combining Multiple Query-Based Distribution Groups

 

In Exchange System Manager, you can create query-based distribution groups based on the AND operator. To create distribution groups based on the OR operator using query-based distribution groups, create multiple query-based distribution groups and combine them in a single distribution group.

Consider the following example, in which you want to create a query-based distribution group that includes all employees in the marketing department or all employees in the Paris office. If you create a query-based distribution group using an LDAP query that contains all marketing users and all Paris employees, this query returns only those users who are in both groups. Anyone who is not a member of both groups is excluded. To get OR functionality, and thereby include members of either group, you must do the following:

  1. Create a query-based distribution group for all employees in the marketing department, named Marketing.

  2. Create a query-based distribution group for all employees in the Paris office, named Paris employees.

  3. Create a distribution group (not a query-based distribution group, however) and add the query-based distribution groups, Marketing and Paris employees, as members of this group.

When you add query-based distribution groups as members of a distribution group, you cannot do so in the same way that you add users to a group. You must right-click the group, and then select Add Exchange query-based distribution group. For detailed instructions about the process of adding query-based distribution groups as members of a standard distribution group, see How to Add Query-Based Distribution Groups as Members of a Distribution Group.