Added method listGroups() and changed method getGroups to getGroupsForUser