Moodle plugins directory: Automatic enrolment in groups | Moodle.org
Automatic enrolment in groups
Administration tool ::: tool_groupautoenrol
Maintained by Pascal Maury, Gemma Lesterhuis, Luuk Verhoeven
Plugin to auto enrol users in Moodle courses groups
Latest release:
247 sites
207 downloads
19 fans
Current versions available: 3
Version 4.2.0 (stable version) for Moodle 3.9.0 to 4.2
Plugin to randomly auto enrol students in Moodle courses groups when they are enrolled into the course (whatever the enrol methods : auto-enrol by key, cohorts sync or manual enrol)
- The plugin uses \core\event\user_enrolment_created (user_enrolled) Moodle event
- If a selected group is deleted, the plugin will ignore it.
- GDPR implementation
- you can choose to enable the plugin in each course
- you can choose to auto-enrol students in all existing course or specific ones
- Tested with Moodle 3.9 and Moodle 4.2
- Another version of the plugin exist and works with Moodle 2.5 and 2.7 (I did not test it with the others versions but should work with all 2.x). It's a local plugin because adding link into "Course administration" menu was not possible for admin tool before Moodle 3.0 You can get it here : https://github.com/pascal-my/moodle-local_groupautoenrol/tree/STABLE
- Copy the directory 'groupautoenrol' into the
moodledir/admin/tool
directory. - Connect to moodle as an administrator and install the plugin.
- Go to a course, create at least one group
- Enable the plugin for the course with the new link "Course administration > Users > Auto-enrol in groups" Note : this link appears even if the plugin is not enabled for the course
- @copyright 2016 Pascal
- @author Pascal M - https://github.com/pascal-my
- @author Luuk Verhoeven - https://github.com/luukverhoeven
From Moodle 3.9 onwards this plugin will be maintained by Gemma Lesterhuis, Moodle Certified Partner - Lesterhuis Training & Consultancy - https://ltnc.nl/
From M4.2.0 versions, we only upgrade this plugin for each Moodle LTS versions. If you want an upgrade for a different version, please create an issue on the github tracker and we will take it into consideration.
Donations for continuous support are welcome.
- 1.1 : stable version not working (bug)
- 1.1.1 : stable version working as local plugin for Moodle 2.x (see https://github.com/pascal-my/moodle-local_groupautoenrol)
- 1.1.2 : stable version working as admin tool plugin for Moodle 3.x
- 3.9.0 : Moodle 3.9 & PHP7.2 version | Moodle 4.0 & PHP 7.4 version | Moodle 4.1 & PHP 8.0 version
- 4.2.0 : Moodle 4.2 & PHP 8.0 version
Useful links
Contributors
Pascal Maury (Lead maintainer)
Gemma Lesterhuis: New maintainer
Luuk Verhoeven: New Maintainer
Please login to view contributors details and/or to contact them
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".