Connections and groups