However, I am in a position where I wish to know whether a group (
My Group) directly or indirectly contains a particular user (
jsmithis a member of
My Groupor one of its members (recursively); or
jsmithis not a member of
My Groupor any of its members (recursively).
I don't need to enumerate all possible users of the group (unless that's the most efficient way to do it).
It would be a bonus if it indicated the heirarchy through which the membership arises, e.g.
Some Other Group, which contains
Some Team Group, which contains
Poorly Maintained Group, which contains
Domain Users, which contains
What would be the best way to answer either of these questions?