How to create groups inside a Moodle course
Once you have a course with enrolled students, groups let you split them into teams inside the same course. You can assign team-based work, show resources to a specific group, and later use forums and assignments in group mode. In this guide you will create a group and add users to it from the Moodle interface installed on your shared hosting (for example, under a subfolder such as /moodle/).
Before you start
- Sign in to your Moodle with a teacher or administrator account.
- Open the course where you want to create the groups.
- Confirm that the students are already enrolled in the course; a user can only join a group if they are enrolled first.
- Decide the group names (for example, “Team A”, “Team B”) before you begin.
When to use groups
- You want to divide a large class into work teams inside the same course.
- You need each team to submit an assignment separately without creating separate courses.
- You will use forums or activities where each group only sees its own members’ contributions.
- You have several schedules or sections that share the same content but must stay separate.
Steps
Create the group
Inside the course, open Participants from the course menu.

In the participants tertiary navigation, open the selector that shows Enrolled users and choose Groups. If you don’t see it there, go through More → Groups (look for a similar option if the wording changes with your theme).
Click Create group.

In Group name, type the team’s name.
Optionally, type a Group description to clarify its purpose.
Leave Enrolment key empty unless your course uses group-based self enrolment. If you do use it, choose a distinct key and never reuse a real password.
Click Save changes. The group will appear in the list on the left.
Add users to the group
In the Groups list, select the group you just created.
Click Add/remove users.
In the Potential members column, choose the enrolled students you want to include.
Click Add to move them to the Group members column.

Click Back to groups to return to the list; Moodle applies the change when you click Add.
Final verification
- In the Groups list, check that the member count appears in parentheses next to the name.
- Select the group and confirm that the correct students show under Members.
- Repeat the process for each additional team you need.
- If you plan to use group mode, remember that each activity is configured separately; here you only got the groups ready.
Common errors
- You can’t find the Groups option: open it from Participants and switch the Enrolled users selector to Groups, or go through More → Groups; the location depends on the theme.
- A student isn’t in Potential members: they are not enrolled in the course yet. Enrol them first, then try again.
- You created the group but it’s empty: creating the group does not add users; you must open Add/remove users and move them to Group members.
- You set an enrolment key without using group self enrolment: that key won’t do anything and can cause confusion; leave it empty if you don’t need it.
Recommended reading
Still need help?
If this guide didn’t solve your issue, our team can help you via ticket.