added support to return a list of group memberships

formatting seems off