How to Enable Self Enrolment With an Enrolment Key in a Moodle Course

Category: Moodle

Self enrolment lets your students join a Moodle course on their own, without you adding each person manually. If you also set an enrolment key, you control who can join even when they already have an account on your Moodle. In this guide you will enable self enrolment with a key from the Moodle interface, without touching the server or using SSH, just as you would on shared hosting.

Before you start

  • You need a Teacher or Administrator role inside the course.
  • Make sure Moodle is installed on your hosting, usually in a subfolder such as /moodle/.
  • Your students must already have an account on your Moodle site (self enrolment does not create new accounts).

When to use self enrolment

Use self enrolment when you already have students with accounts and you want them to join the course themselves, instead of enrolling each one manually.

  • Without a key: any user with an account can join the course. Useful for courses open to your whole community.
  • With an enrolment key: only people who know the key can join. Useful when the course must stay private or per group.

If you need controlled access, do not publish the key in public places: share it only with your group through a private channel.

Steps

  1. Sign in to Moodle with a teacher or administrator account.
  2. Open the course where you want to enable self enrolment.
  3. In the course navigation, open Participants.

The Participants tab highlighted inside a Moodle course.

  1. In the participants tertiary navigation, open Enrolment methods. Check the table: if Self enrolment as ‘Student’ already exists, use the Edit icon in that row. If it does not exist, choose Self enrolment in Add method.

The Edit icon highlighted in the Self enrolment as Student row.

  1. In the Self enrolment form, configure the important fields:
    • Keep current self enrolments active: leave Yes.
    • Allow new self enrolments: select Yes.
    • Enrolment key: if the field is empty, select Click to enter text; if it already has a key, use Edit password. Enter the key you will share with your students.
    • Use group enrolment keys: leave No, unless you already use groups with separate group keys.
    • Default assigned role: select Student.
    • Enrolment duration, Start date, and End date: configure them only if access should expire or start on a specific date.

The Edit password control highlighted in the Enrolment key field.

  1. Select Save changes.
  2. Back in Enrolment methods, confirm that Self enrolment as ‘Student’ is active. If the Enable action still appears, select it; when the method is active, the available action changes to Disable.

The active Self enrolment as Student row in Enrolment methods.

  1. Share only the course link and, if used, the enrolment key with your students. Never share your administrator credentials.

Final verification

  • Sign out or use a test student account (not an administrator).
  • Find the course and try to enrol; if you set a key, confirm it is requested.
  • Check that, after enrolling, the course appears on the student’s dashboard.
  • Confirm that manual enrolment is still active in the course for special cases (for example, enrolling someone without an account or without the key).

Common errors

  • No self enrolment option: the plugin is disabled site-wide; ask the site admin to check Site administration → Plugins → Enrolments → Manage enrol plugins and enable Self enrolment.
  • The student joins with the wrong role: check that the Default assigned role is Student.
  • The key does not work: it is usually a typo or a case mismatch; copy it again and share it carefully.
  • The course is not visible: the course is hidden; set it to Visible in the course settings.
  • “You have no account”: self enrolment does not create accounts; your students must register first.

Still need help?

If this guide didn’t solve your issue, our team can help you via ticket.