Let G be a metric group, not necessarily locally compact, acting on a metric space X , for instance, a right coset space of G. We introduce and develop a basic structure theory for harmonic functions on X which is applicable to infinite dimensional Riemannian symmetric spaces.