If you plan to become a heavy user of PAM and SDM, and build crazy workflows, you need to understand perfectly how SDM works. Mastering doSelect and the object engine is mandatory. You need to be able to extract every piece of information you want. Sooner than you think, you will need to extract data for which there is no OOTB operators nor custom operators. doSelect will be your best friend.
That said, you may consider using doSelect to get your group members, it'll help you master everything.
objectType : grpmem
whereClause : "group.last_name ='groupName here'"
maxRows = 50
attributes : ['member.combo_name','member.email_address','member.supervisor_contact_uuid.combo_name']
If you understood what grpmem is, you should have noticed that you can retrieve every group that a specific user is a member of :
objectType : grpmem
whereClause : "member.last_name ='Obama' and member.first_name='Barack'"
maxRows = 50
attributes : ['group.last_name']