Cohorts

Cohorts are category, site-wide, or global groups that are used to logically cluster related users. We have already come across cohorts in Chapter 4, Course Management, when we dealt with enrolments to courses. Now, we are going to have a closer look at how to create and manage cohorts. To do this, navigate to Users | Accounts | Cohorts.

Cohorts

The details of each cohort, as displayed, and its actions (hide, delete, edit and assign) are provided. In the All cohorts tab, an almost identical view is provided, displaying system as well as category cohorts.

To create a cohort, select Add new cohort tab. A cohort comprises Name, Context, and Cohort ID whether the context is Visible and an optional Description. Here, the context is equal to the course category in which the cohort can be used. The Cohort ID is optional, but it is a good practice to set this as it will be used in a number of operations, for example, when adding users in bulk.

Cohorts

Once you have added the cohort, you will return to the list of all the cohorts. Now, you should add members to it by selecting the assign icon in the list of cohorts. This will display the familiar user selection screen.

Instead of adding cohorts manually, you have the ability to perform this task in a batch via the Upload cohorts link. The principle is the same as adding users in the batch mode, as described in the previous section. Here is a sample file representing the cohorts used earlier:

name, contextid, idnumber, description, visible
7a, 7a, All students from class 7a, 1
7b, 7b, All students from class 7b, 1
7c, 7c, All students from class 7c, 1
Temp, temp, Used as a placeholder, 0

You can find details on uploading cohorts, including all the optional and additional fields, at https://docs.moodle.org/en/Upload_cohorts.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.37.38