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:
970 sites
159 downloads
54 fans
Current versions available: 2

Warning! This plugin is no longer maintained. It may work in recent Moodle versions but there is no support. For details of how you can become the new maintainer, see Plugins adoption programme.

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.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

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

Comments RSS

Show comments
  • Justin Templemore-Finayson
    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 ?
  • David Mudrák
    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.

  • Chye Siaw
    Tue, Oct 12, 2021, 8:56 PM
    Hi David, when is the plugin triggered? We have some students in cohorts but weren't put into the groups in some courses.
  • David Mudrák
    Wed, Oct 13, 2021, 3:38 AM

    Hi Chye Siaw. The plugin makes use of observing events that trigger when the user is enrolled to the course or added to a cohort.

  • Chye Siaw
    Wed, Oct 13, 2021, 7:53 AM
    Thanks for the quick reply David. Is there a way to manually trigger the groupsync? To duplicate it across dozens of courses, I've basically duplicated the database entries with corresponding data. This works fine (I've done and double-checked it), I just needed to trigger the grouping but running "moodle/enrol/groupsync/cli/sync.php" doesn't seem to always trigger the grouping. Turning one of the enrolment off and back on again does trigger it for that specific course, however, but just wondered if there's a way without having to do it for every course.
  • David Mudrák
    Thu, Oct 14, 2021, 12:56 AM

    That's weird that the CLI script did not work for you. Have you tried to run it in the verbose mode?

  • Robert Stracke
    Tue, Nov 9, 2021, 12:19 AM
    Hi David, is it possible to transfer enrolment-definitions made for one course to another? Chye's speaking about 'duplicating database entries' - but could you please explain about how to do this? Thanks a lot smile
  • David Mudrák
    Tue, Nov 9, 2021, 1:18 AM

    Hi Robert. There is no UI for that. I suppose that Chye made some low-level operations directly in the enrol table, which is something I'd generallyt discourage from doing so, unless you know what you're doing.

  • Chye Siaw
    Sun, Dec 12, 2021, 12:03 AM
    @Robert Yes I'm basically duplicating rows within the enrol table, as David says this is generally discouraged as altering the tables can mess everything up and render your site unusable. Unfortunately there's no way to do it easily because the id for groups within each course is unique, even though they might have the same name. Duplicating the rows still require the "customint2" value to be changed to match the corresponding id within the groups table. I have resorted to writing my own scripts to do this laborious process instead.
  • Learning Works
    Mon, May 23, 2022, 11:13 AM
    Hi. what happened to the 'Max enrolled users' field in the cohort sync form?
  • David Mudrák
    Tue, May 24, 2022, 4:06 AM

    Hi Learning Works. Sorry, I have no idea what you are referring to? That field is part of the self enrolment form AFAIK. This plugin does not touch any enrolment at all.

  • Lawrence Symes
    Wed, Jan 18, 2023, 7:09 AM
    Hi David, just to clarify- this can be used with Cohort Sync?
  • Kathy Cee
    Thu, Jun 15, 2023, 1:37 PM
    Hi There, this is a great plugin in - we use it a lot. I was wondering if this plugin will be compatible with PHP 8 and Moodle 4.2? We really need it - nothing like it for grouping lots of people quickly and easily.
  • David Mudrák
    Thu, Jun 22, 2023, 3:02 AM

    According to https://moodle.org/plugins/enrol_groupsync/stats there are some 4.2 sites having the plugins installed. It still needs to be tested on new PHP versions. Any help and feedback will be welcome.

  • Gavin Hartley
    Tue, Oct 3, 2023, 9:10 PM
    Hello, I am having issues and not sure if it is the plugin or cohort sync. I remove user from cohort_members and group_members after cron executes it adds the user back to group_members. Is this a bug or must I add some settings? I use cohort_remove_members moodle function
1 2 3 4
Please login to post comments