Enrolment: Cohort members to group

Maintained by Picture of David MudrákDavid Mudrák
Cohort to group sync for users already enrolled via different method.
963 sites
45 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
  • Picture of Chye Siaw
    Tue, Sep 11, 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.
  • Picture of David Mudrák
    Tue, Sep 11, 2018, 8:11 PM

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

  • 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 https://docs.moodle.org/en/Cohort_sync

  • 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 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.

1 2 3
Please login to post comments