Let $P$ be a p-group. Denote by $Z(G)$ its center and $H^*(P,\mathbb{F}_p)$ its mod $p$ cohomology ring.
My general (vague) question is what can be said about the mod $p$ cohomology of the central extension $$1 \rightarrow Z(P) \rightarrow P \rightarrow P/Z(P)$$ and in particular when $Z(P)$ is an elementary abelian $p$-group?
More specifically, I am wondering the following:
Let $\varphi$ be an automorphism of $P$ which acts as identity on $H(Z(G),\mathbb{F}_p)$ and $H^* (P,\mathbb{F}_p)$. Does $\varphi$ then also acts as identity on $H^*(P/Z(P), \mathbb{F}_p)$?