Upload enrolment methods
Versions
Current version
1.4.1 (Build: 2025051600) (2025051600)
1.4.1 (Build: 2025051600)
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2025051600
Version release name: 1.4.1 (Build: 2025051600)
Maturity: Stable
Supported Moodle versions: 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.4.1
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Change Log
All notable changes to this project will be documented in this file.
[1.4.1] - 2025-05-16
Added
- Update for PHP 8 and code styling compatibility
[1.4.0] - 2023-05-15
Added
- Support 'attributes' enrolment method, fix permissions strings
[1.3.4] - 2021-08-02
Added
- Clean up code to improve style and conform to latest conventions
[1.3.3] - 2021-05-08
Added
- Allow same cohort or meta course to be added with different role
[1.3.2] - 2020-12-08
Added
- Entire number is needed in Moodle version number
[1.3.1] - 2020-12-02
Added
- Fix broken error messages
[1.3.0] - 2020-08-15
Added
- Change to defined column headings, and alternative delimiters to the comma.
[1.2.0] - 2019-08-20
Added
- Add support for defining the role associated with the enrolment method.
[1.1.2] - 2019-02-27
Added
- Remove unused capability settings.
[1.1.1] - 2018-08-24
Added
- Fixed incorrect error messages.
[1.1.0] - 2018-07-28
Added
- Fix cohort enrolment to set role as student.
[1.0.1] - 2018-07-27
Added
- Added support for assigning to a group.
[1.0.0] - 2018-07-11
Added
- Tidied up code for initial approved public release.
[0.7.3] - 2018-05-26
Added
- Modify support for Privacy API for PHP 7.0 (3.4).
[0.7.2] - 2018-05-26
Added
- Modify support for Privacy API for PHP 5.6 (2.9 - 3.3).
[0.7.1] - 2018-05-14
Added
- Add support for Privacy API in preparation for GDPR.
[0.7.0] - 2018-05-08
Added
- Use course shortnames, not idnumbers as unique identifier.
[0.6.3] - 2018-05-07
Added
- Fixed reporting bug in cohort enrolment.
[0.6.1] - 2018-05-04
Added
- Added clearer, more language-dependent report strings.
[0.6.0] - 2018-05-03
Added
- Added support for cohort enrolment method.
[0.5.1] - 2018-04-16
Added
- Moved plugin from /local to /admin/tool folder.
- Plugin tested with Moodle 2.9, 3.1 and 3.4.
[0.4.0] - 2018-04-13
Added
- Improved error messages.
- Plugin tested with Moodle 2.9 and 3.1.
[0.3.0] - 2018-04-13
Added
- Initial working release.
- Plugin tested with Moodle 3.1.
[0.1.0] - 2018-04-12
Added
- Initial release.
1.4.0 (Build: 2023051500) (2023051500)
1.4.0 (Build: 2023051500)
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2023051500
Version release name: 1.4.0 (Build: 2023051500)
Maturity: Stable
Supported Moodle versions: 3.10, 3.11, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.4.0
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Change Log
All notable changes to this project will be documented in this file.
[1.4.0] - 2023-05-15
Added
- Support 'attributes' enrolment method, fix permissions strings
[1.3.4] - 2021-08-02
Added
- Clean up code to improve style and conform to latest conventions
[1.3.3] - 2021-05-08
Added
- Allow same cohort or meta course to be added with different role
[1.3.2] - 2020-12-08
Added
- Entire number is needed in Moodle version number
[1.3.1] - 2020-12-02
Added
- Fix broken error messages
[1.3.0] - 2020-08-15
Added
- Change to defined column headings, and alternative delimiters to the comma.
[1.2.0] - 2019-08-20
Added
- Add support for defining the role associated with the enrolment method.
[1.1.2] - 2019-02-27
Added
- Remove unused capability settings.
[1.1.1] - 2018-08-24
Added
- Fixed incorrect error messages.
[1.1.0] - 2018-07-28
Added
- Fix cohort enrolment to set role as student.
[1.0.1] - 2018-07-27
Added
- Added support for assigning to a group.
[1.0.0] - 2018-07-11
Added
- Tidied up code for initial approved public release.
[0.7.3] - 2018-05-26
Added
- Modify support for Privacy API for PHP 7.0 (3.4).
[0.7.2] - 2018-05-26
Added
- Modify support for Privacy API for PHP 5.6 (2.9 - 3.3).
[0.7.1] - 2018-05-14
Added
- Add support for Privacy API in preparation for GDPR.
[0.7.0] - 2018-05-08
Added
- Use course shortnames, not idnumbers as unique identifier.
[0.6.3] - 2018-05-07
Added
- Fixed reporting bug in cohort enrolment.
[0.6.1] - 2018-05-04
Added
- Added clearer, more language-dependent report strings.
[0.6.0] - 2018-05-03
Added
- Added support for cohort enrolment method.
[0.5.1] - 2018-04-16
Added
- Moved plugin from /local to /admin/tool folder.
- Plugin tested with Moodle 2.9, 3.1 and 3.4.
[0.4.0] - 2018-04-13
Added
- Improved error messages.
- Plugin tested with Moodle 2.9 and 3.1.
[0.3.0] - 2018-04-13
Added
- Initial working release.
- Plugin tested with Moodle 3.1.
[0.1.0] - 2018-04-12
Added
- Initial release.
1.3.4 (Build: 2021080201) (2021080201)
1.3.4 (Build: 2021080201)
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2021080201
Version release name: 1.3.4 (Build: 2021080201)
Maturity: Stable
Supported Moodle versions: 3.10, 3.11, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.3.4
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Change Log
All notable changes to this project will be documented in this file.
[1.3.4] - 2021-08-02
Added
- Clean up code to improve style and conform to latest conventions
[1.3.3] - 2021-05-08
Added
- Allow same cohort or meta course to be added with different role
[1.3.2] - 2020-12-08
Added
- Entire number is needed in Moodle version number
[1.3.1] - 2020-12-02
Added
- Fix broken error messages
[1.3.0] - 2020-08-15
Added
- Change to defined column headings, and alternative delimiters to the comma.
[1.2.0] - 2019-08-20
Added
- Add support for defining the role associated with the enrolment method.
[1.1.2] - 2019-02-27
Added
- Remove unused capability settings.
[1.1.1] - 2018-08-24
Added
- Fixed incorrect error messages.
[1.1.0] - 2018-07-28
Added
- Fix cohort enrolment to set role as student.
[1.0.1] - 2018-07-27
Added
- Added support for assigning to a group.
[1.0.0] - 2018-07-11
Added
- Tidied up code for initial approved public release.
[0.7.3] - 2018-05-26
Added
- Modify support for Privacy API for PHP 7.0 (3.4).
[0.7.2] - 2018-05-26
Added
- Modify support for Privacy API for PHP 5.6 (2.9 - 3.3).
[0.7.1] - 2018-05-14
Added
- Add support for Privacy API in preparation for GDPR.
[0.7.0] - 2018-05-08
Added
- Use course shortnames, not idnumbers as unique identifier.
[0.6.3] - 2018-05-07
Added
- Fixed reporting bug in cohort enrolment.
[0.6.1] - 2018-05-04
Added
- Added clearer, more language-dependent report strings.
[0.6.0] - 2018-05-03
Added
- Added support for cohort enrolment method.
[0.5.1] - 2018-04-16
Added
- Moved plugin from /local to /admin/tool folder.
- Plugin tested with Moodle 2.9, 3.1 and 3.4.
[0.4.0] - 2018-04-13
Added
- Improved error messages.
- Plugin tested with Moodle 2.9 and 3.1.
[0.3.0] - 2018-04-13
Added
- Initial working release.
- Plugin tested with Moodle 3.1.
[0.1.0] - 2018-04-12
Added
- Initial release.
1.3.3 (Build: 2021050800) (2021050800)
1.3.3 (Build: 2021050800)
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2021050800
Version release name: 1.3.3 (Build: 2021050800)
Maturity: Stable
Supported Moodle versions: 3.10, 3.11, 3.5, 3.6, 3.7, 3.8, 3.9
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.3.3
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Change Log
All notable changes to this project will be documented in this file.
[1.3.3] - 2021-05-08
Added
- Allow same cohort or meta course to be added with different role
[1.3.2] - 2020-12-08
Added
- Entire number is needed in Moodle version number
[1.3.1] - 2020-12-02
Added
- Fix broken error messages
[1.3.0] - 2020-08-15
Added
- Change to defined column headings, and alternative delimiters to the comma.
[1.2.0] - 2019-08-20
Added
- Add support for defining the role associated with the enrolment method.
[1.1.2] - 2019-02-27
Added
- Remove unused capability settings.
[1.1.1] - 2018-08-24
Added
- Fixed incorrect error messages.
[1.1.0] - 2018-07-28
Added
- Fix cohort enrolment to set role as student.
[1.0.1] - 2018-07-27
Added
- Added support for assigning to a group.
[1.0.0] - 2018-07-11
Added
- Tidied up code for initial approved public release.
[0.7.3] - 2018-05-26
Added
- Modify support for Privacy API for PHP 7.0 (3.4).
[0.7.2] - 2018-05-26
Added
- Modify support for Privacy API for PHP 5.6 (2.9 - 3.3).
[0.7.1] - 2018-05-14
Added
- Add support for Privacy API in preparation for GDPR.
[0.7.0] - 2018-05-08
Added
- Use course shortnames, not idnumbers as unique identifier.
[0.6.3] - 2018-05-07
Added
- Fixed reporting bug in cohort enrolment.
[0.6.1] - 2018-05-04
Added
- Added clearer, more language-dependent report strings.
[0.6.0] - 2018-05-03
Added
- Added support for cohort enrolment method.
[0.5.1] - 2018-04-16
Added
- Moved plugin from /local to /admin/tool folder.
- Plugin tested with Moodle 2.9, 3.1 and 3.4.
[0.4.0] - 2018-04-13
Added
- Improved error messages.
- Plugin tested with Moodle 2.9 and 3.1.
[0.3.0] - 2018-04-13
Added
- Initial working release.
- Plugin tested with Moodle 3.1.
[0.1.0] - 2018-04-12
Added
- Initial release.
1.2.0 (2019082001)
1.2.0
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2019082001
Version release name: 1.2.0
Maturity: Stable
Supported Moodle versions: 2.9, 3.0, 3.1, 3.2, 3.3, 3.4
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.2.0
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Upload enrolment methods
Upload enrolment methods from a CSV file into a range of courses
Description
The Upload course enrolment methods plugin for Moodle allows you to add enrolment methods to a range of courses at the same time.
The Course meta link and Cohort sync methods are supported.
You can also delete, enable or disable existing enrolment methods in a course.
The plugin is strongly based on the Upload Metacourse links (block_metalink)
plugin developed by Mark Johnson, and uses code from it.
Requirements
This plugin requires Moodle 2.9+ from http://moodle.org
Installation and Update
Install the plugin, like any other plugin, to the following folder:
/admin/tool/uploadenrolmentmethods
See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins.
There are no special considerations required for updating the plugin.
Uninstallation
Uninstalling the plugin by going into the following:
Administration > Site administration > Plugins > Manage plugins > Upload enrolment methods
...and click Uninstall. You may also need to manually delete the following folder:
/admin/tool/uploadenrolmentmethods
Usage & Settings
There are no configurable settings for this plugin.
Use the command Administration > Site administration > Plugins > Enrolments > Upload enrolment methods
to upload a CSV file containing lines of the form:
operation, enrolment method, target course shortname, meta course shortname or cohort idnumber, disabled status, group name[,role]
The format of the CSV file is as follows:
- Lines beginning with a # or ; character are comments, and skipped.
- Each line of the file contains one record.
- Each record is a series of data in a fixed order separated by commas.
- The fields are: operation, enrolment method, target course shortname, parent course shortname or cohort idnumber, disabled status, group name[, role].
- All fields are required except role, which can be omitted for backwards compatibility.
- The operations are add, del(ete) and upd(ate).
- The supported enrolment methods are meta and cohort.
- The disabled status values are 1 (disabled) or 0 (enabled).
- Students enrolled via the method will be placed in the group specified in the group name field.
The group will be created if it doesn't already exist. - The role field must be a valid role name such as editingteacher, student, etc.
License
2018 Eoin Campbell
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see .
1.1.0 (2018072801)
1.1.0
Plugin type: Administration tools
Frankenstyle component name: tool_uploadenrolmentmethods
Version build number: 2018072801
Version release name: 1.1.0
Maturity: Stable
Supported Moodle versions: 3.3, 3.4
Repository URL (Git): https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods
Repository branch:
Repository tag: v1.1.0c
Issue/bug tracker URL: https://github.com/ecampbell/moodle-tool_uploadenrolmentmethods/issues
Upload enrolment methods
Upload enrolment methods from a CSV file into a range of courses
Description
The Upload course enrolment methods plugin for Moodle allows you to add enrolment methods to a range of courses at the same time.
The Course meta link and Cohort sync methods are supported.
You can also delete, enable or disable existing enrolment methods in a course.
The plugin is strongly based on the Upload Metacourse links (block_metalink) plugin developed by Mark Johnson,
and uses code from it.
Requirements
This plugin requires Moodle 2.9+ from http://moodle.org
Installation and Update
Install the plugin, like any other plugin, to the following folder:
/admin/tool/uploadenrolmentmethods
See http://docs.moodle.org/33/en/Installing_plugins for details on installing Moodle plugins.
There are no special considerations required for updating the plugin.
Uninstallation
Uninstalling the plugin by going into the following:
Administration > Site administration > Plugins > Manage plugins > Upload enrolment methods
...and click Uninstall. You may also need to manually delete the following folder:
/admin/tool/uploadenrolmentmethods
Usage & Settings
There are no configurable settings for this plugin.
Use the command Administration > Site administration > Plugins > Enrolments > Upload enrolment methods
to upload a CSV file containing lines of the form:
operation, enrolment method, target course shortname, meta course shortname or cohort idnumber, disabled status, group name
The format of the CSV file is as follows:
- Lines beginning with a # or ; character are comments, and skipped.
- Each line of the file contains one record.
- Each record is a series of data in a fixed order separated by commas.
- All fields are required.
- The fields are: operation, enrolment method, target course shortname, parent course shortname or cohort idnumber, disabled status, group name.
- Allowed methods are meta and cohort.
- Allowed operations are add, del, upd
- The allowed disabled status field values are 1 (disable) and 0 (enable).
- The group name field is the name of a group into which enrolled students should be placed.
It will be created if it doesn't already exist.
License
2018 Eoin Campbell
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see .