# Cohort members to group

Enrolment ::: enrol_groupsync
Maintained by David Mudrák
Cohort to group sync for users already enrolled via different method.
Latest release:
983 sites
47 fans
Moodle 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0

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

• Fri, Feb 1, 2019, 3:41 PM
I wish you good work.
I need help installing this plugin. Which directory should I install in Moodle?
• Fri, Feb 1, 2019, 5:03 PM

If you are using the inbuilt installer, the location will be automatically selected based on the plugin type. When deploying the code manually, this needs to go to a new folder inside the enrol directory. In other words, the full path to the file version.php in this plugin must be <your_moodle_dirroot>/enrol/groupsync/version.php

• Mon, Feb 4, 2019, 10:00 AM
I found when cohort members are changed, the group members have no effect. Is there a syncronization or its one off?
• Mon, Feb 11, 2019, 3:31 AM

Hi Sam. Sorry to hear you have troubles with the plugin. Are the users you added to the cohort, also enrolled to the course? Is the main Moodle cron set up and running ok?

• Sat, Mar 23, 2019, 3:35 AM
Boa tarde, estou tentando utilizar seu pluguin, quero lhe parabenizar !
Mas após instalar, não encontro o mesmo para configurar !
• Tue, Sep 17, 2019, 9:51 PM
Hello,
Good plugin, but synchro is done by hand... Is it possible to synchronize many groups and cohorts when we deploy them via a flat file ? Thanks
• Wed, Sep 18, 2019, 3:42 PM

The synchronisation is generally driven by observing the enrolment events. Could it be that your importing solution does not trigger the relevant events?

• Thu, Dec 5, 2019, 5:41 PM
Hello, I think that question had to be asked. Is it possible to automatically generate a group from a cohort without manually acting ? Thanks
• Fri, Dec 6, 2019, 4:44 AM

Hi Julien. It is possible but it is not the purpose of this plugin. You are probably looking for https://docs.moodle.org/en/Cohort_sync

• Tue, Jan 26, 2021, 1:39 AM
Hello, sorry for the question, although I have read the description I prefer to ask ... on my platform I have several global groups (cohorts) separated by role in the company and by branch.
Some courses are dedicated only to a certain business role, but with participants from multiple branches, each time I have to import the empty groups into the course and then separate manually enroll the course participants into individual groups ... luckily the user id helps me of 7 digits that I set with a numbering that allows me to identify the branch (and also the role). This plugin would help me?
Thank you, David
• Wed, Jan 27, 2021, 12:43 AM

Hi David. It depends. From how i understand your description, you could also make use of https://docs.moodle.org/en/Cohort_sync That will also enrol the users from the said cohort and eventually can put them into a course group, too. This plugin "Cohort members to group" can be seen as a subset of "Cohort sync". It only controls the group membership but does not actually enrol the users.

• Tue, Mar 16, 2021, 11:43 PM
Hi David, Just to clarify This plugin will help me in this scenario like I have two courses some users are enrolled in Course A and some are in Course B. Now I have created a Cohort and this cohort contains the users from both courses. Now if I only want to add Course A cohort members into Group A of Course A. So this plugin will help me to do that, right?
• Wed, Mar 17, 2021, 12:53 AM

Hello Jai. Thank you for your interest in the plugin. If you add an instance of this plugin into the course A and configure it to synchronise cohort members with the Group A, then yes. It would pick all existing participants from the Course A that are in the Cohort and would put them into the Group A in the course. Users that are in the Cohort but are not enrolled in the course, would be neither added to the group, nor enrolled into the course. Hope this helps.

• Tue, May 18, 2021, 6:43 PM
Hi there! I'm trying yo install your plugin, without success. After successful installation, my Moodle is unreachable (ERR_CONNECTION_REFUSED) without any useful log information, apart from a message apparently related to SSL encryption. Is the plugin compatible Moodle 3.10 ? Does it require an SSL connection to function correctly ?
• Wed, May 19, 2021, 4:22 AM

Hi Justin. Yes, we have the plugin deployed on both 3.10 and 3.11 sites in production. It does not require SSL to function. I can't see how it would relate to your experienced troubles. Sorry for them.