AEM Communities Get user's groups
Hello All, I am using AEM 6.5.8 communities and in a regular component looking to get logged in user's community groups which they are part of.
I am looking at https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/com/adobe/cq/social/members/api/CommunityMemberUserProfile.html#getMemberOfGroups-- and looks like I can use getMembersOfGroups() to get the (Community only) groups the user is a member of.
If I am using an HTL component and Model, how can I invoke the CommunityMemberUserProfile interface with the logged in user's perspective? @kautuk_sahni any Adobe AEM communities dev/expert that can be tagged here? I can't find any that helped in communities regards before.
