getGroups implemented