AutoEnrol icon

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.
Price option: Free

Supports Moodle 3.5-4.5 See all versions
Latest release: 1 year ago
Installations: 5814
Downloads (last 90 days): 1538

Frankenstyle name: enrol_autoenrol
Enrolment

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Mark, I don't understand. I add a word to the "Department" section of the test student account. I then setup the AutoEnrol plugin to add any account with that word in the "Department" field. The autoenrol works. However, I edit the test student account and remove that word from the "Department" field. I log back in and the account is still enrolled in the course. I need it so the account is removed from the course if that word is not in that field. Does it not work that way?
Hi Bryce,
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
This plugin works great for automatically enrolling. Should it also automatically un-enroll a student once the variable is removed from the account?
Mark
Thank you for this! it solves my enrolment problems smile
regards Gary
Hi folks,
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!
I hope there is plans to update this for 2.7 its perfect for my organisation. I have been using it on 2.5 but now we are in a position to upgrade and it would be a huge blow for this not to work now!!
regards Gary
Is there any plan to upgrade this great plugin for mdl 2.7 ?
Hi,
Tested on 2.7.1.
Course auto-enrol works fine.
Site auto-enrol does not work.
Best,
It could be the perfect plugin I need. But for 2.7...
Has someone tested it on 2.7.1 ?
Tks
Problem solved. I'm a blind ape smile
After enabling plug it it is necessary to add enrollement method to EACH course already created.
Hello! I've installed Auto Enrollment plug-in on my moodle v2.6 with no errors, but i've got only 2 options to change:
- 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.
Hi
Thank you for this great plugin smile
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()
Well all is well again now, guessing we had some caching going on of some kind.
We're seeing weird behaviour with this on our site since we upgraded to 2.5 last week. It shows as an instance in the Course Administration menu tree (under Enrolment methods), and as an Add enrolment type... option - BUT it is not showing in the table listing enrolment methods for that course and therefore the delete button. Any ideas?
Hello again. I'm still relatively new to Moodle and realised that the deprecation error was really just warning at this point (see http://docs.moodle.org/dev/Deprecation). I have done a local fix because I'm working as a dev and want to keep debug on.