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

Cohorts

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

Creating a cohort

Cohorts can be created by site administrators and other users with appropriate permissions.

  • Access Administration > Site administration > Users > Accounts > Cohorts

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 Administration > Site administration > Plugins > Enrolments > Manage enrol plugins.

Adding users to a cohort in bulk

  1. Access Administration > Site administration > Users > Accounts > Bulk user actions
  2. Find users by setting an appropriate filter
  3. Add users from the available list to the selected list
  4. Choose 'Add to cohort' with selected users

Uploading users to a cohort

An administrator can upload users via CSV file to existing cohorts as follows:

  1. Access Administration > Site administration > Users > Accounts > Upload users
  2. Upload a text file with the following format:
username,password,firstname,lastname,email, cohort1
tomjones,Pass1234*,Tom,Jones,tomjones@example.com, year3
marysmith,Pass1234*,Mary,Smith,marysmith@example.com, year4

where year3 and year4 are the cohort ids of existing cohorts (i.e. not their names)

Note: To add existing users on the system to exisiting cohorts, you only need their username and the cohort id in your csv file.

Searching cohorts

When a site has a large number of cohorts, keywords may be entered into the Search Cohorts box to search for or filter the available cohorts.

Please note, as the page title indicates, this only searches for cohorts created in the System context (i.e. it searches site-level cohorts but not category-level cohorts). To search for cohorts created in a Category context, go to that Category's page and in its Settings block, click the link to Cohorts.

searcohorts.png

Managing category cohorts

Cohorts which have been created for a category rather than the system can be located by selecting the appropriate category and then clicking the Cohorts link in Settings>Category (name)>Cohorts

Cohort capabilities

See also