





















































In this article by William Rice, author of the book, Moodle E-Learning Course Development - Third Edition shows you how to use groups to separate students in a course into teams. You will also learn how to use cohorts to mass enroll students into courses.
Groups and cohorts are both collections of students. There are several differences between them. We can sum up these differences in one sentence, that is; cohorts enable administrators to enroll and unenroll students en masse, whereas groups enable teachers to manage students during a class.
Think of a cohort as a group of students working together through the same academic curriculum. For example, a group of students all enrolled in the same course. Think of a group as a subset of students enrolled in a course. Groups are used to manage various activities within a course.
Cohort is a system-wide or course category-wide set of students.
There is a small amount of overlap between what you can do with a cohort and a group. However, the differences are large enough that you would not want to substitute one for the other.
In this article, we'll look at how to create and use cohorts. You can perform many operations with cohorts in bulk, affecting many students at once.
To create a cohort, perform the following steps:
Now that the cohort is created, you can begin adding users to this cohort.
Students can be added to a cohort manually by searching and selecting them. They can also be added in bulk by uploading a file to Moodle.
If you add a student to a cohort, that student is enrolled in all the courses to which the cohort is synchronized. If you remove a student from a cohort, that student will be unenrolled from all the courses to which the cohort is synchronized.
We will look at how to synchronize cohorts and course enrollments later. For now, here is how to manually add and remove students from a cohort:
When you upload students to Moodle, you can add them to a cohort.
After you have all the students in a cohort, you can quickly enroll and unenroll them in courses just by synchronizing the cohort to the course. If you are going to upload students in bulk, consider putting them in a cohort. This makes it easier to manipulate them later.
Here is an example of a cohort. Note that there are 1,204 students enrolled in the cohort:
These students were uploaded to the cohort under Administration | Site Administration | Users | Upload users:
The file that was uploaded contained information about each student in the cohort. In a spreadsheet, this is how the file looks:
username,email,firstname,lastname,cohort1 moodler_1,[email protected],Bill,Binky,open-enrollmentmoodlers moodler_2,[email protected],Rose,Krial,open-enrollmentmoodlers moodler_3,[email protected],Jeff,Marco,open-enrollmentmoodlers moodler_4,[email protected],Dave,Gallo,open-enrollmentmoodlers
In this example, we have the minimum required information to create new students. These are as follows:
We also have the cohort ID (the short name of the cohort) in which we want to place a student.
During the upload process, you can see a preview of the file that you will upload:
Further down on the Upload users preview page, you can choose the Settings option to handle the upload:
Usually, when we upload users to Moodle, we will create new users. However, we can also use the upload option to quickly enroll existing users in the cohort.
You saw previously (Manually adding and removing students to a cohort) how to search for and then enroll users in a cohort. However, when you want to enroll hundreds of users in the cohort, it's often faster to create a text file and upload it, than to search your existing users. This is because when you create a text file, you can use powerful tools—such as spreadsheets and databases—to quickly create this file. If you want to perform this, you will find options to Update existing users under the Upload type field.
In most Moodle systems, a user's profile must include a city and country. When you upload a user to a system, you can specify the city and country in the upload file or omit them from the upload file and assign the city and country to the system while the file is uploaded. This is performed under Default values on the Upload users page:
Now that we have examined some of the capabilities and limitations of this process, let's list the steps to upload a cohort to Moodle:
Prepare a plain file that has, at minimum, the username, email, firstname, lastname, and cohort1 information. If you were to create this in a spreadsheet, it may look similar to the following screenshot:
Using the cohort sync enrolment method, you can enroll and un-enroll large collections of students at once. Using cohort sync involves several steps:
You saw the first two steps: how to create a cohort and how to enroll students in the cohort. We will cover the last two steps: enabling the cohort sync method and adding the cohort sync to a course.
To enable the cohort sync enrollment method, you will need to log in as an administrator. This cannot be done by someone who has only teacher rights:
After enabling the cohort sync method, it's time to actually add this method to a course.
To perform this, you will need to log in as an administrator or a teacher in the course:
All the users in the cohort will be given a selected role in the course.
There are two ways to un-enroll a cohort from a course. First, you can go to the course's enrollment methods page and delete the enrollment method. Just click on the X button located next to the cohort sync field that you added to the course. However, this will not just remove users from the course, but also delete all their course records.
The second method preserves the student records. Once again, go to the course's enrollment methods page located next to the Cohort sync method that you added and click on the Settings icon. On the Settings page, select No for Active. This will remove the role that the cohort was given. However, the members of the cohort will still be listed as course participants. So, as the members of the cohort do not have a role in the course, they can no longer access this course. However, their grades and activity reports are preserved.
Cohort sync and enrolling a cohort are two different methods. Each has advantages and limitations.
If you follow the preceding instructions, you can synchronize a cohort's membership to a course's enrollment. As people are added to and removed from the cohort, they are enrolled and un-enrolled from the course. When working with a large group of users, this can be a great time saver. However, using cohort sync, you cannot un-enroll or change the role of just one person. Consider a scenario where you have a large group of students who want to enroll in several courses, all at once. You put these students in a cohort, enable the cohort sync enrollment method, and add the cohort sync enrollment method to each of these courses. In a few minutes, you have accomplished your goal. Now, if you want to un-enroll some users from some courses, but not from all courses, you remove them from the cohort. So, these users are removed from all the courses. This is how cohort sync works.
Cohort sync is everyone or no one
When a person is added to or removed from the cohort, this person is added to or removed from all the courses to which the cohort is synced. If that's what you want, great. If not,
An alternative to cohort sync is to enroll a cohort. That is, you can select all the members of a cohort and enroll them in a course, all at once. However, this is a one-way journey. You cannot un-enroll them all at once. You will need to un-enroll them one at a time.
If you enroll a cohort all at once, after enrollment, users are independent entities. You can un-enroll them and change their role (for example, from student to teacher) whenever you wish.
To enroll a cohort in a course, perform the following steps:
Note that although you can enroll all users in a cohort (all at once), there is no button to un-enroll them all at once. You will need to remove them one at a time from your course.
A group is a collection of students in a course. Outside of a course, a group has no meaning.
Groups are useful when you want to separate students studying the same course. For example, if your organization is using the same course for several different classes or groups, you can use the group feature to separate students so that each group can see only their peers in the course. For example, you can create a new group every month for employees hired that month. Then, you can monitor and mentor them together.
After you have run a group of people through a course, you may want to reuse this course for another group. You can use the group feature to separate groups so that the current group doesn't see the work done by the previous group. This will be like a new course for the current group.
You may want an activity or resource to be open to just one group of people. You don't want others in the class to be able to use that activity or resource.
You can apply the groups setting to an entire course. If you do this, every activity and resource in the course will be segregated into groups.
You can also apply the groups setting to an individual activity or resource. If you do this, it will override the groups setting for the course. Also, it will segregate just this activity, or resource between groups.
For a course or activity, there are several ways to apply groups. Here are the three group modes:
No groups: There are no groups for a course or activity. If students have been placed in groups, ignore it. Also, give everyone the same access to the course or activity.
Separate groups: If students have been placed in groups, allow them to see other students and only the work of other students from their own group. Students and work from other groups are invisible.
Visible groups: If students have been placed in groups, allow them to see other students and the work of other students from all groups. However, the work from other groups is read only.
You can use the No groups setting on an activity in your course. Here, you want every student who ever took the course to be able to interact with each other. For example, you may use the No groups setting in the news forum so that all students who have ever taken the course can see the latest news.
Also, you can use the Separate groups setting in a course. Here, you will run different groups at different times. For each group that runs through the course, it will be like a brand new course.
You can use the Visible groups setting in a course. Here, students are part of a large and in-person class; you want them to collaborate in small groups online.
Also, be aware that some things will not be affected by the groups setting. For example, no matter what the group setting, students will never see each other's assignment submissions.
There are three ways to create groups in a course. You can:
We'll cover these methods in the following subsections.
Don't be discouraged by the idea of manually populating a group with students. It takes only a few clicks to place a student in a group. To create and populate a group, perform the following steps:
Note the Search fields. These enable you to search for students that meet a specific criteria. You can search the first name, last name, and e-mail address. The other part of the user's profile information is not available in this search box.
When you automatically create groups, Moodle creates a number of groups that you specify and then takes all the students enrolled in the course and allocates them to these groups. Moodle will put the currently enrolled students in these groups even if they already belong to another group in the course.
To automatically create a group, use the following steps:
The term importing groups may give you the impression that you will import students into a group. The import groups button does not import students into groups. It imports a text file that you can use to create groups. So, if you need to create a lot of groups at once, you can use this feature to do this.
This needs to be done by a site administrator.
If you need to import students and put them into groups, use the upload students feature. However, instead of adding students to the cohort, you will add them to a course and group. You perform this by specifying the course and group fields in the upload file, as shown in the following code:
username,email,firstname,lastname,course1,group1,course2 moodler_1,[email protected],Bill,Binky,history101,odds,science101 moodler_2,[email protected],Rose,Krial,history101,even,science101 moodler_3,[email protected],Jeff,Marco,history101,odds,science101 moodler_4,[email protected],Dave,Gallo,history101,even,science101
In this example, we have the minimum needed information to create new students. These are as follows:
We have also enrolled all the students in two courses: history101 and science101. In the history101 course, Bill Binky, and Jeff Marco are placed in a group called odds. Rose Krial and Dave Gallo are placed in a group called even. In the science101 course, the students are not placed in any group.
Remember that this student upload doesn't happen on the Groups page. It happens under Administration | Site Administration | Users | Upload users.
Cohorts and groups give you powerful tools to manage your students. Cohorts are a useful tool to quickly enroll and un-enroll large numbers of students. Groups enable you to separate students who are in the same course and give teachers the ability to quickly see only those students that they are responsible for.