getAllGroups in GroupManager