Documentation:Moodle Support Resources/self enrolment key
Self Enrolment Key
Setting an enrolment key within a course
Enable Self Enrolment
Click the eye to enable self enrolments next click the edit icon to add the enrolment key
Add Enrolment Key
Click Unmask to see what Moodle has automatically generated. You may use the enrolment key provided or delete it and add your own key.
Enabling and setting enrolment duration and/or end date will result in students being automatically unenroled from your Moodle course.