Implement getJoinedGroups API