Enrolment: Cohort members to group

Maintained by Picture of David Mudrák David Mudrák
Cohort to group sync for users already enrolled via different method.
210 sites
22 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.


Screenshot #0
Screenshot #1
Screenshot #2


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

Comments RSS

Show comments
  • Picture of Francis Vendrell
    Wed, 9 Jan 2013, 5:22 AM
    Thank you very much for this very useful plugin!

    It seems to me that there is a small bug.
    When an enrolment method is created for a given course, the number of users shown is always zero, although the number of users in the corresponding group is not zero.
  • Picture of Alf Martin Johnsen
    Wed, 9 Jan 2013, 2:56 PM
    Do you have a Moodle 2.3 version of "Cohort members to group"?
  • Picture of Mitchell van Gerwen
    Thu, 24 Jan 2013, 5:53 PM

    Maybe a stupid question, but in which folder do I have to put groupsync?

    Thanks in advance,

    Mitchell van Gerwen
  • Picture of Simon M.
    Fri, 26 Apr 2013, 6:53 PM
    I'm getting an error after installation. I've uploaded the groupsync folder to the /enrol directory. I've installed it and it's appearing under enrollment plugins but when I click on Settings in "Manage enrol plugins", I get a "Section Error".

    Am I missing a step? Any help would be appreciated. Thanks.
  • Picture of Dean Leggo
    Thu, 12 Jun 2014, 12:08 PM
    FYI If you are not using a 'different method' you can sync cohorts to groups by going to:
    Enrolment methods > edit Cohort sync > Add to group.
    Apples to version 2.4 and newer.
  • Me
    Wed, 21 Jan 2015, 5:29 PM
    Hello, Does anyone know if this works in 2.7.x?
  • Picture of David Mudrák
    Wed, 11 Mar 2015, 9:02 PM
    It does. It has been used at moodle.org for a while so it is sort of tested regularly to work with recent Moodle versions.
  • Picture of Scott Duff
    Mon, 22 Feb 2016, 9:28 PM
    Tested on version 3.0.2+; works as expected. Can we get a version bump?
  • Picture of David Mudrák
    Sat, 21 May 2016, 4:53 AM

    A new version for Moodle 3.1.0 released. See release notes for details.

  • Picture of gaetan dureau
    Thu, 16 Feb 2017, 1:22 PM
    will this be updated for version 3.2?
  • Picture of David Mudrák
    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.

  • Picture of Dan Jackson
    Tue, 27 Jun 2017, 7:58 PM
    Does the latest version support Moodle 3.0, or only 3.1 and up?
  • Picture of David Mudrák
    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.

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

Please login to post comments