Curvature invariants, differential operators and local homogeneity

We first prove that a Riemannian manifold (M, g) with globally constant additive Weyl invariants is locally homogeneous. Then we use this result to show that a manifold (M, g) whose Laplacian commutes with all invariant differential operators is a locally homogeneous space.