added support to return a list of group memberships

Can this also be reduced to a Set?