Let us restrict ourselves to $n = p^k$, for some prime $p$. I ask:
what primitive polynomials $P$ vanish identically on $\mathbb Z /n$ ?
what primitive polynomials $P$ vanish identically on $(\mathbb Z /n)^\times$?
Regarding no 2, it should be clear that $P$ could be reduced modulo $X^{\varphi(n)} - 1$, so a possible preliminary question would be: do there exist primitive polynomials of degree less than $\varphi(n)$ that vanish identically on $(\mathbb Z /n)^\times$?