# Automatic course enrolment ## What automatic enrolment means The EduSystems integration for Moodle 4.5 LTS includes a UMS Fields extension for enrolling users into a Moodle course based on matching educational fields. It is an action performed by an authorized educator or administrator. Synchronizing student profiles supplies the data; it does not itself enrol students in every matching course. Distinguish a Moodle course (a space for content and participants), the student's study year (e.g., second year), and a learning-plan subject in EduSystems. This enrolment action does not award credits or grades, distribute virtual groups or assign teaching workload in EduSystems. ## Prepare course fields Open the intended Moodle course as an educator allowed to edit course settings or an authorized administrator. In the course settings, set the educational fields in UMS Fields and save. The integration creates the fields with institutional options; synchronized student values come from the active academic record in EduSystems. | Field | Meaning | Example | | --- | --- | --- | | Educational degree | Level of qualification | Bachelor's | | Faculty | Faculty of the profession | Computer Science | | Learning format | Mode of study | Full-time | | Profession | Field/program | Information Systems | | Academic year | Academic year | 2026–2027 | | Study year | Year of study | 2 | These are the six educational fields supplied by student synchronization. Patronymic and phone numbers are not course criteria. Semester, subject title, teaching group, elective choice and its completion are not part of this standard set of criteria. Matching a year of study alone does not establish eligibility for a particular learning-plan subject. Default setup creates optional single-value fields. Administrators can configure a course UMS field for multiple selection. Filled fields are combined by AND; alternative values inside a field use OR. Empty fields do not limit the search. When no criteria are set, the tool does not enrol everyone; first configure the course. **Example:** “Introduction to Databases” serves full-time, second-year Information Systems bachelor's students in 2026–2027. Set the relevant faculty, degree, profession, format, year and study year. If multiple professions are eligible, select their alternatives when multiselect is enabled, retaining the other criteria. A third-year student does not match even when all other fields match. ## Enrol matching students 1. Confirm student accounts and educational fields are synchronized and the course has an enabled Manual enrolments method. In Moodle 4.5, review it under Participants → Enrolment methods. 2. Open Participants for the intended course. The extension adds “Auto-enrol matching students” to user navigation where the theme exposes it, or an enrolment suggestion near the bottom of the participants page when matching unenrolled users exist. 3. On the automatic enrolment page, review the listed course criteria, matching count and not-yet-enrolled count. These are selection counts at the time of viewing, not a confirmed course roster. 4. If the criteria and expected audience are correct, press the matching-enrolment button. The tool uses an enabled manual enrolment instance and the Student role. Already enrolled users are skipped; repeating the action does not create duplicate enrolments. 5. Read the enrolled/already-enrolled result, then open [Participants](/en/docs/moodle-course-participants) and compare actual membership, roles and statuses with the academic office. Stop and ask the administrator to review any unexpected count or membership. A completed enrolment action does not mean that the student has signed in or can see every activity. Course visibility, individual enrolment and account status also matter. ## After data changes - Educational changes in EduSystems trigger the standard student-profile synchronization when integration is enabled. It runs through a queue and may not be immediate. - After a student moves to another study year or academic year, check the updated fields and repeat enrolment for the intended Moodle course. - This tool adds matching users. It does not remove previously enrolled users when criteria or profiles change. Do not bulk remove old enrolments without consulting the academic office; this can affect learning records. - On student deletion in EduSystems, the integration suspends the corresponding Moodle user account; restoration unsuspends it. This differs from managing individual course enrolments. - The enrolment action does not itself transfer course outcomes, assignments, attendance or enrolments back into EduSystems. ## Permissions and troubleshooting Access to this action requires Moodle's `enrol/manual:enrol` capability in the selected course context. Editing settings or enrolment methods has separate permissions. EduSystems faculty/profession scopes govern source-data operations; they do not automatically grant Moodle course capabilities. | Symptom | Check | | --- | --- | | No auto-enrol action | Course-level enrolment permission, plugin availability and Moodle theme. | | No configured fields warning | Saved UMS Fields in the intended course and valid institutional values. | | No matches | All filled criteria, synced profiles and field options; the student must satisfy every configured dimension. | | Matches but none enrolled | Enabled manual enrolment method, existing enrolments and rights. | | Unexpected membership | Compare actual participants and account availability with an administrator; the matching counter is not a guarantee of final membership. | The reviewed project image follows Moodle 4.5 LTS and rejects releases older than 4.5.15. The actual deployed version should be verified by the responsible Moodle administrator. ## Implementation references - [moodle_plugins · Dockerfile](https://gitlab.kamoorj.com/development/moodle_plugins/-/blob/78752be8122742bab259dd2d6a58602547048aed/Dockerfile) - [moodle_plugins · local/userfields/auto_enrol.php](https://gitlab.kamoorj.com/development/moodle_plugins/-/blob/78752be8122742bab259dd2d6a58602547048aed/local/userfields/auto_enrol.php) - [moodle_plugins · local/userfields/lib.php](https://gitlab.kamoorj.com/development/moodle_plugins/-/blob/78752be8122742bab259dd2d6a58602547048aed/local/userfields/lib.php) - [moodle_plugins · local/userfields/classes/external/setup_course_fields_api.php](https://gitlab.kamoorj.com/development/moodle_plugins/-/blob/78752be8122742bab259dd2d6a58602547048aed/local/userfields/classes/external/setup_course_fields_api.php) - [moodle_plugins · customfield/field/umsfields/classes/field_controller.php](https://gitlab.kamoorj.com/development/moodle_plugins/-/blob/78752be8122742bab259dd2d6a58602547048aed/customfield/field/umsfields/classes/field_controller.php) - [backend-edusystems · app/Modules/Moodle/Jobs/SyncStudentToMoodleJob.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Moodle/Jobs/SyncStudentToMoodleJob.php) - [backend-edusystems · app/Modules/Moodle/Console/Commands/SyncStudentsCommand.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Moodle/Console/Commands/SyncStudentsCommand.php) - [MoodleDocs 4.5 · Manual enrolment](https://docs.moodle.org/405/en/manual_enrolment) - [MoodleDocs 4.5 · Course settings](https://docs.moodle.org/405/en/course/edit)