title: Is there any way to get list of groups domain user is part of using ansible modules without using win_shell module
body: <p>I want to delete the domain user from local groups but unable to find the domain user is part of which local group currently I'm using</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: Add a local and domain user to a local group
    win_group_membership:
      name: administrators
      members:
        - testldn2-1
             #- DOMAIN\TestUser
      state: absent
  </code></pre>
  <p>but this works for individual group</p>