Cohort members to group

Enrolment ::: enrol_groupsync
Maintained by Picture of David MudrákDavid Mudrák
Cohort to group sync for users already enrolled via different method.
Latest release:
983 sites
46 fans
Current versions available: 2

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.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of David Mudrák
David Mudrák (Lead maintainer)
Picture of Petr Skoda
Petr Skoda: Original author
Picture of Amaia Anabitarte
Amaia Anabitarte
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Wazza
    Tue, Sep 11, 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?
  • Picture of David Mudrák
    Wed, Sep 12, 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.

  • Cumali YAŞAR
    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?
  • Picture of David Mudrák
    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

  • Picture of Sam Suresh
    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?
  • Picture of David Mudrák
    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?

  • Picture of Marcos Paulo Sales dos Santos
    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 !
  • Picture of alain kerv
    Tue, Sep 17, 2019, 9:51 PM
    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
  • Picture of David Mudrák
    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?

  • Picture of Julien Degas
    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
  • Picture of David Mudrák
    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

  • Picture of David Delcò
    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, smile David
  • Picture of David Mudrák
    Wed, Jan 27, 2021, 12:43 AM

    Hi David. It depends. From how i understand your description, you could also make use of 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.

  • Picture of Jai Bararia
    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?
  • Picture of David Mudrák
    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.

1 2 3
Please login to post comments