Symmetries in an overdetermined problem for the Green's function