How to create a Moodle user and enrol them in a course
For a learner to get into your course you need two things: a Moodle account and an enrolment in the course with the Student role. It takes two minutes from site administration. Verified in Moodle 5.2.
Before you start
- Sign in to your Moodle with an administrator account.
- Have the course ready where you will enrol the user; if you don’t have one yet, create your first course.
- Decide the username, email and an initial password for the person you are adding.
Steps
Create the user
Go to Site administration → Users → Accounts → Add a new user.
Fill in Username and, in New password, set an initial password.

If you want the person to change their password at first login, enable Force password change.
Fill in First name, Last name and Email address.
Click Create user to create the account.
If you’d rather have Moodle make up the password, tick Generate password and notify user. It only works if your Moodle already sends email; if not, set the password yourself and share it with the person.
Enrol the user in the course
Open the Course where you want to enrol the user.
Open Participants from the course menu.
Click Enrol users.
Search for and select the user you just created.
Under Assign role, choose Student and confirm with Enrol users.

Final verification
Confirm the user appears in the course Participants list with the Student role.

Check that the Email address and name look correct in their profile.
Ask the person to sign in with their username and initial password.
Many learners?
Adding them one by one doesn’t scale. If your learners can create their own account, enable self enrolment with a key and share the key with them. If you have the list, use Site administration → Users → Accounts → Upload users with a CSV file.
Common errors
- The user doesn’t appear when enrolling: confirm the account was saved and that you are in the right course.
- The learner can’t see the course: check that they have the Student role and that the enrolment is active.
- Duplicate email: Moodle does not allow two accounts with the same email address; use a different one.
- The password doesn’t meet the policy: adjust the initial password so it meets the site’s minimum requirements.
- You’re worried about losing the course work: before making big changes, back up and download your course.
On our Moodle hosting installation is free and JetBackup backs up your campus automatically.
Recommended reading
Still need help?
If this guide didn’t solve your issue, our team can help you via ticket.