Automatic enrolment in groups
- Moodle 1.9–5.1
- 更新 2026-10-02
Plugin to auto enrol users in Moodle courses groups
Moodle tool for automatically enrolling students into course groups
In brief, groupautoenrol randomly assigns students to course groups when they are enrolled in a course (via any enrollment method: auto-enrol by key, cohort sync, or manual enrolment).
Author: Pascal M, https://github.com/pascal-my
Author: Luuk Verhoeven LdesignMedia
Author: Gemma Lesterhuis LTNC B.V.
Min. required: Moodle 3.9
Supports PHP: 7.4
Features
Core Functionality
Automatically enrolls students into groups when they join a course
Works with all enrollment methods (manual, self-enrollment, cohort sync)
Random assignment to ensure balanced group distribution
Per-course configuration
Technical Details
Uses coreeventuser_enrolment_created (user_enrolled) Moodle event
Safely handles deleted groups (ignores them during assignment)
GDPR compliant implementation
Admin tool plugin architecture for better integration
Configuration Options
- 5.1.2Moodle 4.5, 5.0, 5.1
- 5.0.0Moodle 3.9, 3.10, 3.11, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
- 3.9.0Moodle 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0, 4.1
- 1.1.2Moodle 3.0