title: LDAP query to enumerate of all users of the subgroups of a group
body: <p>This LDAP query successfully enumerates all users within a group:</p>
  
  <pre><code>memberOf=CN=MySubGroup1,OU=MyGroup1,OU=Global Groups,DC=mycompany,DC=com
  </code></pre>
  
  <p>The group MyGroup1 has two subgroups: MySubGroup1, MySubGroup2.
  In order to get all the users of MyGroup1, I could make a query to get the users of MySubGroup1, another query to get the users of MySubGroup1, and then make the union.</p>
  
  <p>However, I am asking how I can achieve the same results with only one LDAP query,
  asking for all the users within MyGroup1 and sub-groups.</p>
  
  <p>Any idea?</p>