How can I set the user's role upon registration? #7328

i have this same problem and the solutions proposed here are not working for me… does anyone know any better way?