$R$ is a ring. Applying the Serre spectral sequence to a fibration $F\to E\to B$, to avoid local coefficients, we need to require that $\pi_1(B)$ acts on $H^*(F, R)$ trivially. Consider a fibration of classifying spaces $BH\to BG \to BM$. Here $H,G,M$ are nice (e.g. compact) topological groups s.t. $1\to H\to G \to M\to 1$.
What condition, as general as possible, can ensure that $\pi_1(BM)$ acts on $H^*(BH, R)$ trivially? I could verify the triviality/non-triviality in the problems I have on hand, but I'm curious about a general characterization.
I'm particularly interested in the case that $H$ is path-connected and $M$ is a finite group. For example, $BSO(n)\to BO(n) \to K(\mathbb{Z}/2,1)$. (In this example, the action is always trivial when $R=\mathbb{Z}/2$, but depends on the parity of $n$ when $R=\mathbb{Z}$.)