title: How to get memberof of a built-in group in Active Directory?
body: <p>I was trying get all the user accounts of a certain group. For that, I used the following filter:</p>
  
  <pre><code>BASEDN:  DC=example,DC=com
  FILTER:  (&amp;(memberof=CN=Myusers,DC=example,DC=com)(objectclass=user)(objectcategory=person))
  </code></pre>
  
  <p>which works fine. But I also wanted to get the users for built-in groups such as <code>Domain Users,Domain Admins</code> and so on. When I tried using the same type of filter </p>
  
  <pre><code>BASEDN:  DC=example,DC=com
  FILTER:  (&amp;(memberof=CN=Domain Users,CN=Users,DC=example,DC=com)(objectclass=user)(objectcategory=person))
  </code></pre>
  
  <p>for these built-in groups, it does not work. Why does this happen?</p>