If I had a Lagrangian of the form
$$ \mathcal{L} = (\partial_{\mu}\phi,\partial^\mu \phi)-U[(\phi,\phi)]$$
where $\phi = (\phi_1,\phi_2,\ldots,\phi_n)$ is an $n$-dimensional vector of complex fields, and $(u,v)=v^\dagger u$ is the usual inner product, how do I know what the symmetry group is? At first glance I would say $SU(n)$ as it will preseve the inner products, but surely an $n$-dimensional unitary representation of ANY group would preserve the inner products too?