title: How to get all groups that a user is a member of, based on group extensionattribute
body: <p>I'm tryng to get all the groups the users of a domain are member of, but filtering only the groups with a given <strong>extensionattribute</strong>.
  I set the <strong>extensionattribute12</strong> of all the domain groups to better filter some queries (i.e. Infrastructure - security - elearning). My query should get only the user(s) groups with</p>
  <blockquote>
  <p>extensionattribute12=security</p>
  </blockquote>
  <p>(for example).
  I use something like:</p>
  <pre><code>get-aduser -filter  -Properties memberof | select name, @{ l=&quot;GroupMembership&quot;; e={$_.memberof  -join &quot;;&quot;  } }
  </code></pre>
  <p>and I get all the groups of the users. How can I filter by group extensionattribute?</p>