Let $k'/k$ be a finite Galois extension, and $X$ an affine $k'$-scheme. Consider its Weil restriction $\mathrm{Res}_{k'/k} X$, an affine $k$-scheme.
It is well-known (for instance Weil, Adeles and algebraic groups I.3) that \begin{equation} ( \mathrm{Res}_{k'/k} X ) \times_k k' \cong \prod_{\sigma \in \mathrm{Gal} (k'/k)} X^{\sigma} \end{equation} where $X^{\sigma}$ is the base change of $X$ along the $k$-map $\sigma: k' \longrightarrow k'$.
This question Two definitions of the Weil restriction. as well as the source they mention (Weil) explains more or less how the map is defined: it is the product of the maps $p^{\sigma}$ where $p: ( \mathrm{Res}_{k'/k} X ) \times_k k' \longrightarrow X$ corresponds (I am guessing) to the identity map on $\mathrm{Res}_{k'/k} X$ under the adjunction \begin{equation} \mathrm{Hom} \left( ( \mathrm{Res}_{k'/k} X ) \times_k k', X \right) \cong \mathrm{Hom} \left( \mathrm{Res}_{k'/k} X , \mathrm{Res}_{k'/k} X \right) \end{equation} and $p^{\sigma}$ is obtained by $p$ via base change along $\sigma: k' \longrightarrow k'$ as before.
I would like to understand how $\mathrm{Gal} (k'/k)$-action on the right hand side works - on the left hand side it is simply the Galois action on the $k'$-factor. I would guess that on the right hand side the action of $\gamma$ is simply given by `permuting' the factors, via $X^{\sigma} \stackrel{\gamma}{\longrightarrow} X^{\sigma \gamma}$ - is that the case?
Of course, I tried to make the Galois action go through the isomorphism mentioned above, but I am a bit confused about whether $p^{\sigma}$ is defined as "$p$, followed by base change by $\sigma^{-1}$" or if one really wants to base change under $\sigma$ the map $p: \mathrm{Res}_{k'/k} X \times_k k' \longrightarrow X$, and then there is some canonical isomorphism between the domain and its $\sigma$-base change.
I am aware that the Galois action can be used to define the descent datum on the right hand side and ultimately prove the existence of the Weil restriction, but I am not sure how this could help me.