added support to return a list of group memberships

Intended, but renaming for clarity