  The magnetic moment of a baryon state is an equally important dynamical
observable as its mass, which encodes crucial information of its underlying
structure. According to the different color-flavor structure, we have
calculated the magnetic moments of the hidden-charm pentaquark states with
$J^P={\frac{1}{2}}^{\pm}$, ${\frac{3}{2}}^{\pm}$, ${\frac{5}{2}}^{\pm}$ and
${\frac{7}{2}}^{+}$ in the molecular model, the diquark-triquark model and the
diquark-diquark-antiquark model respectively. Although a good description for
the pentaquark mass spectrum and decay patterns has been obtained in all the
three models, different color-flavor structures lead to different magnetic
moments, which can be used to pin down their inner structures and distinguish
various models.
