I'm developing a plugin to allow automatic enrolment in groups.
When the student is enrolled in the course, he is enrolled randomly in a group (whatever the enrol method used : auto-enrol by key, cohorts sync or manual enrol).
The plugin is based on the trigger 'user_enrolled' and can be enable course by course.
It can be improve :
- allow teacher to choose between random, balanced or alphabetic enrolment
- allow teacher to choose for which role(s) the enrolment will works
The plugin is "waiting for approval" : https://moodle.org/plugins/view.php?plugin=local_groupautoenrol