Note: You are currently viewing documentation for Moodle 3.11. Up-to-date documentation for the latest stable version of Moodle may be available here: Cohorts.

Cohorts

From MoodleDocs

Please refer to these notes before editing this page.

Cohorts, or site-wide groups, enable all members of a cohort to be enrolled in a course in one action, either manually or synchronised automatically.

Enrolling a cohort in a course

In order to actually enrol users from a Cohort into courses the Cohort-Sync Enrollment plugin needs to be added to the enrollment methods for the course. The Administrator will first need to enable the Cohort-Sync enrolment plugin site wide (Site administration > Plugins > Enrolments) and then add it to the required Course: (Settings > Users > Enrolment Methods).


Cohortsync.png

At this stage the Cohort-Sync instance for the course is edited and the appropriate Cohort selected. The role to which the Cohort users are assigned is also selected at this point (typically Student).

Visiting the Course administration > Users > Enrolled Users page will show users enrolled via the Cohort-Sync plugin.

Note that, by default, a teacher cannot add this plugin to their course. It needs to be configured by an Administrator or a user with the Manager role.


The required capabilities for setting up a cohort sync are:

  • moodle/course:enrolconfig in the course context
  • moodle/cohort:config in the course context
  • moodle/cohort:view in the same context as category

The required capabilities for manually enrolling cohort members are:

  • the same as cohort sync (note: this is a bug MDL-28431)
  • enrol/manual:enrol in course context
  • moodle/course:enrolreview in course context

Admin settings for cohorts

To create a cohort manually:

  • Access Site administration > Users > Accounts > Cohorts

File:Createcohort.png

  • Click the Add button
  • NOTE In the dropdown you can choose between making your cohort available throughout the site "system" or in a named category.
  • Complete the details and save the changes.
  • Follow the assign link opposite the cohort name in the list of available cohorts.

Assigncohort.png

  • Select potential users from the list then click the Add button.

To synchronise cohort members with course participants, the Cohort sync enrolment plugin should be enabled in Site administration > Plugins > Enrolments > Manage enrol plugins.

Uploading cohorts via CSV

  • This feature is planned to be included in 2.2. See the tracker here: [[1]]

See also