Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Enrolment key.
A course enrolment (or enrollment) key is one method to restrict Internal enrolment (student self enrolments) to a smaller group. The default setting is not to set a key.
An enrolment key is often used as a simple method of having someone else beside the teacher determine if a particular student can self enrol in the course. The idea is that one or more people will supply the course key to authorized people. Sometimes this distrubution is private email, snail mail, on the phone or even verbally in a face to face meetings such as a class or counselor's office.
Setting an enrolment key
The enrolment key is a Moodle setting that any teacher or admin user can set on a course by course basis.
To locate and use this setting:
- Login to Moodle as an admin or teacher
- Navigate to the desired course
- Locate the Course Administration block
- Click on Settings in that block
- Scroll down and locate the Enrolment key field
- Enter the key in the adjacent text field ("bratwurst" in the example)
- Scroll to the bottom of the page and click "Save changes"
Tips and Tricks
- If the enrolment key for a course "gets out" and unwanted people self enrol,
- Changing or placing a key does not impact currently enrolled students, nor does it impact students who may also be enrolled by an enrolment plugin
- Guests may (optionally) be required to supply the enrolment key (as specified on the Course Settings page). They will be required to supply the code every time they enter the course
- The "No" or "Date range" options in the "Course available" setting effectively disables the enrolment key feature, even if it is set
- You can control who is named as supplying the key. See Internal enrolment.