I am reading the paper Generalised Global Symmetries to understand higher-form symmetries. The first example in Section 4 that the authors talk about is the free Maxwell theory in 4d, i.e., pure $U(1)$ gauge theory in 4D. In this example, they talk about two 1-form symmetries: electric $U(1)_e$, with 2-form current $j_e \sim \star F$, and magnetic $U(1)_m$, with 2-form current $j_m \sim F \equiv dA$. It is mentioned that the action of the electric 1-form symmetry on the gauge field $A$ is a shift by a flat connection $\lambda$, i.e., $d\lambda=0$. A flat connection is not necessarily a constant, then why is this called a global symmetry?
A related fact discussed in the same section is that the topological symmetry operator corresponding to electric 1-form symmetry is given by $$U_\alpha^e(M_2)=\exp\left(i\frac{2\alpha}{g^2}\int_{M_2}\star F\right),$$ where $M_2$ is a 2d submanifold in 4d spacetime, $g$ is the gauge coupling constant, and $e^{i\alpha}\in U(1)_e$ is the corresponding group element. Here, $\alpha$ is indeed a constant. How is $\alpha$ related to $\lambda$ above?