How to assign default role of student on email based self registration

How to assign default role of student on email based self registration

ó $a->name - $a->date
Number of replies: 1
I have enabled email based self registration on my moodle server. But the default role given to a registered user is "authenticated user". How can I change it to "student" by default?

Alternatively, I wish the users registered via self registration to be able to access a quiz on home site, outside of all courses. What settings can I change so that the quiz is available to authenticated users.

Thanks and regards
Meán na gcomhlán: -