Moodle Plugins directory: Automatic enrolment in groups | Moodle.org
Automatic enrolment in groups
-
Automatically enrol students into course groups when they join a course. Works with all enrolment methods (manual, self-enrolment, cohort sync) and randomly assigns users to ensure balanced group distribution.
- Author: Pascal M, https://github.com/pascal-my
- Author: Luuk Verhoeven, ldesignmedia.nl
- Author: Gemma Lesterhuis, LTNC B.V.
- Min. required: Moodle 4.5
- Supports PHP: 8.1+
- Automatically enrols students into groups when they join a course
- Works with all enrolment methods (manual, self-enrolment, cohort sync)
- Random assignment to ensure balanced group distribution
- Per-course enable/disable configuration
- Choice to auto-enrol in all existing groups or specific ones
- GDPR compliant implementation
- Course-level management through "Course administration > Users > Auto-enrol in groups"
- Copy this plugin to the
admin/tool/groupautoenrolfolder on the server - Login as administrator
- Go to Site Administrator > Notification
- Install the plugin
- Create groups in your course(s)
- Enable the plugin for specific courses via "Course administration > Users > Auto-enrol in groups"
If you discover any security related issues, please email luuk@ldesignmedia.nl instead of using the issue tracker.
The GNU GENERAL PUBLIC LICENSE. Please see License File for more information.
Contributions are welcome and will be fully credited. We accept contributions via Pull Requests on Github.
- @copyright 2016 Pascal
- @author Pascal M - https://github.com/pascal-my
- @author Luuk Verhoeven - https://github.com/luukverhoeven
See CHANGELOG.md for a full list of changes.
Thanks.
I never used external database, so I am not planning to work on enrollment automatically from external database for now, sorry. You can improve my code in this way
I need students to be assigned to specific groups, and I have a table in an external database that contains the groups and students names. Can you tell me how this plugin assigns groups, so that I can augment for my use?
Note : I have no idea if my plugin still works with Moodle > 3.0.
You have to test it first !
No problem for updating this plugin, I have not time to update it anymore. I sent you a "contact request".
https://somemoodle/admin/tool/groupautoenrol/manage_auto_group_enrol.php?id=40
Was able to patch it by replacing this line at top of the file from:
require_once('../../../config.php');
to this:
require(__DIR__ . '/../../../config.php');
require_once($CFG->libdir . '/formslib.php');
Thank you for this contribution.
We are looking into this and will provide an update shortly.
Kind regards,
Vincent Cornelis
Ldesign Media
This should be solved now, we released version 5.1.1 you should be able to update the plugin to this new release.
Kind regards,
Luuk Verhoeven