AutoEnrol
Maintained by
Roberto Pinna, Mark Ward
Adds functionality to automatically enrol users onto a course, either as they log in to your Moodle site or as they access a course.
This plugin was at first intended for use on courses which you want all users to be able to access but can also be configured for more advanced purposes as reserved access courses.
Using the new user filtering you can think at Autoenrol as a Swiss Army knife for Moodle enrolments.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
The filtering only works on values as they are at the time. If you're looking for a more dynamic link I'd recommend using the cohort enrolment method.
All the best
Mark
Thank you for this! it solves my enrolment problems
regards Gary
I've added a new version of the plugin for Moodle 2.6, 2.7 and 2.8. Any problems please just let me know either via email or here in the comments.
Thanks!
regards Gary
Tested on 2.7.1.
Course auto-enrol works fine.
Site auto-enrol does not work.
Best,
Has someone tested it on 2.7.1 ?
Tks
After enabling plug it it is necessary to add enrollement method to EACH course already created.
- Set auto enroll to all new courses
- set role "Student" for auto enrolled users.
The problem is that I've manually added new user to Moodle, then added that user to Students group and when logged in with new user I still got message that "You canno't enroll yourself to course".
Please explain me how to enable auto enroll?
P.S. I've made changes in Auto enroll module as Eric Gagnon said.
Thank you for this great plugin
Iwas wondering if anyone had come across a error message when deleting Autoenrol as an enrolment method once it is used? i have the following error code from debugging
Debug info: ERROR: invalid input syntax for integer: ""
SELECT 'x' FROM mdl_groups WHERE id = $1 LIMIT 1 OFFSET 0
[array (
0 => '',
)]
Error code: dmlreadexception
Stack trace:
line 423 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 248 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
line 711 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
line 1689 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_recordset_sql()
line 1674 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_sql()
line 1658 of /lib/dml/moodle_database.php: call to moodle_database->record_exists_select()
line 232 of /enrol/autoenrol/lib.php: call to moodle_database->record_exists()
line 99 of /enrol/instances.php: call to enrol_autoenrol_plugin->delete_instance()