Given a topological space $X$ with a group action $ \varphi : G \times X \to X$, we can construct a group extension with $\pi_1(X)$ as follows:
Take the universal cover $\pi : \tilde X \to X$ and consider the set of lifts:
$$L_1= \{ (\tilde f,g) \in \text{Homeo}(\tilde X)\times G : \pi\circ \tilde f = \varphi(g) \circ \pi\} $$
By identifying the associated deck transformation with an element of $\pi_1(X)$ then we get a group extension: $$ 0 \to \pi_1(X) \to L_1 \to G \to 0 $$
Question: Does there exist a similar extension for higher homotopy groups?
My idea would be to use the $n^{th}$ stage $X_n$ of the Whitehead tower, since this is the $n$-connected version of the universal cover. This stage sits in a fibration with fiber $K(\pi_n(X), n-1)$. I am wondering if we perform the same construction as $L_1$, except we lift to $X_n$ instead of $\tilde X$, if we get a group extension:
$$ 0 \to K(\pi_n(X),n-1) \to L_n \to G \to 0 $$
Idea: Maybe one way to do this would be to consider the loop space $\Omega^{n-1}X$, since we know that $\pi_1(\Omega^{n-1}X)=\pi_n(X)$. Then maybe a similar argument to the universal cover extension could be used? However this would seem to require inducing the $G$-action on $X$ to a $G$-action on $\Omega^{n-1}X$. I am confused about how to do this if the $G$-action is free, and so does not preserve the basepoint of the loop space.
Edit: fixed $L_1$ definition