## Enrolment: Cohort members to group

enrol_groupsync
Maintained by David Mudrák
Cohort to group sync for users already enrolled via different method.
324 sites
33 fans
Moodle 3.1, 3.2, 3.3, 3.4, 3.5, 3.6

This Moodle enrolment plugin synchronises cohort and group memberships. It does not make any user enrolments. Only users that are enrolled via other enrolment method are automatically put into groups based on their cohort membership.

### Contributors

Petr Skoda: Original author
Amaia Anabitarte

• Thu, 16 Feb 2017, 4:19 PM

Sorry I forgot to mark 3.2 as supported version. We've been using this in production on 3.2 sites with no problem.

• Tue, 27 Jun 2017, 7:58 PM
Does the latest version support Moodle 3.0, or only 3.1 and up?
• Tue, 27 Jun 2017, 9:17 PM

It has been tested with 3.1 and later only. But chances are it will work with 3.0 too.

• Fri, 25 Aug 2017, 12:29 AM
This plugin is fantastic, just what we needed. Can I ask, is it possible to add this enrolment method to newly created courses automatically?
• Tue, 29 Aug 2017, 4:27 PM

Hi Chye. Yes, it could be implemented by making use of the course_updated() callback, similarly like the Guest enrolment does it, for example. May I ask for reporting a new feature request in the Moodle Tracker for this? Thanks.

• Wed, 14 Mar 2018, 11:54 PM
I'm a bit confused about this plugin. Is this not standard Moodle functionality and if not, what exactly is different from the normal cohort enrollment screen in which you can add users to a course group?
• Thu, 15 Mar 2018, 2:55 AM

There is an overlap between the standard Moodle's "Cohort sync" enrolment method and this plugin. The difference is that this plugin does not actually enrol / unenrol users. It deals with the group membership only.

• Tue, 22 May 2018, 6:15 PM
Probably the most stupid question: Where can I find this plugin in Moodle? *shrugs*
• Wed, 20 Jun 2018, 7:12 PM

You add it as a new enrolment method to the course.

• Sat, 11 Aug 2018, 3:42 AM
Hi, could this plugin automaticaly send notification when users enroled to the course group ?
• Mon, 13 Aug 2018, 4:53 PM

Thanks Denis for the suggestion. Please feel encouraged to report a feature request in the plugin's bug tracker. I am just wondering if that feature could be implemented via the existing https://docs.moodle.org/en/Event_monitoring functionality.

• Tue, 11 Sep 2018, 7:48 PM
A question. Could this plugin be made to automatically sync cohorts and groups within courses? Instead of having to select each cohort and its corresponding group. We are trying to use this to automatically create groups within a course based on their cohort. Eg Students in Cohort A gets put into Group A, Cohort B into Group B, etc. We have up to hundreds of cohorts, so linking each cohort to a group is too time-consuming.

The reason for this is that we are using cohorts as a site-wide groups (same for all courses), and need students to be placed in their respective groups within the course.
• Tue, 11 Sep 2018, 8:11 PM

Thanks Chye Siaw for the suggestion. Please feel encouraged to report a feature request in the plugin's bug tracker.

• Tue, 11 Sep 2018, 8:31 PM
Hi David,
I've asked this before, and thanks for your answer, but it's still not clear to me (sorry). In Moodle standard cohort enrol you can add the cohort members to a group.

What does this do exactly?
• Wed, 12 Sep 2018, 3:11 AM

This plugin is to be used in cases when some other method is used for actual enrolment and you just want to keep cohorts synced to local groups. Say you enrol users manually or via LDAP but still want to synchronize the cohort and groups membership. In other words, imagine it as a Cohort sync but without the actual enrolment part.