# Structure of the automorphism group of a Riemann surface

I was wondering if anything is known about the possible structure of $\mathrm{Aut}(S)$ for a Riemann surface $S$. More precisely, are there known obstructions for a finite group $G$ to be such an automorphism group?

In fact, every finite group is isomorphic to the full automorphism group $\textrm{Aut}(S)$ of some compact Riemann surface $S$ (of genus at least $2$).
Moreover, $S$ may be chosen so that the quotient Riemann surface $S/\textrm{Aut}(S)$ has any preassigned genus.