We are using SharePoint groups to define roles in a custom application. One requirement is to get the groups which the current user is in.
I can of course use the User.Groups property but this only returns groups where the user is directly assigned to the group.
I would like to find the groups where the user is indirectly assigned to the group.
I add "contoso\domain users" to the "Visitors" group.
If I then check User.Groups then the "Visitors" group is not returned.
Which query can I execute which WILL return that group? (along with all of the other groups the user is a member of).