added support to return a list of group memberships

very good point. Adding a config field for it.