You can use below snippet to fetch the group of a user:
Enumeration enumeration = OrganizationServicesHelper.manager.parentGroups(SessionHelper.manager.getPrincipal(),false);
while (enumeration.hasMoreElements()) {
String groupName = ((WTPrincipalReference)enumeration.nextElement()).getPrincipal().getName();
}
Let me know if you need more info.