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): 1534

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.

Hi. This plugin has been wonderful to streamline user experience as we launch our new site, to give learners trial access to content straight away. Not that we want to start charging users for access we have hit a snag. Even though an enrolment duration is set, users can still access courses even after enrolment expires. I first tried setting what happens when enrolment expires to deactivate enrolment, then when that didn't work, to unenrol users (created another new user to test from scratch). Am I missing something?
To test in our sandbox environment, I set duration on the auto enrol plugin to 1 minute for each course. It is set to auto enrol on login. I created a new user, logged in, got access. Waited 1 minute, started reading and saw cron runs every 10 minutes, checked again after 10 minutes. The user still has access to all the courses.
What set of settings do I need so users gain access when they first log in, but after a set number of days (or time to test), they should not be auto enrolled again.
Your help would be greatly appreciated.
Thanks
Jessica
To make it more clear, in the administration setting of Autoenrol, there is the option of "Enrolment expiry action"; I had set it to "unenrol the user"; but, it doesn't work since the "end date" is not successfully set by the plugin. I tried manual enrolments and other plugins, and unenrol works fine at expiration. So, I believe there must be a piece of code or adjustment missing, and you will easily find and fix it. I really need to use the plugin with an end date and I will really appreciate if you could find the solution.
Best
Tumer
Hi Alberto,
Thank you for your prompt reply back. In fact, when I set "enrolment duration" it automatically enrolls the student and unenrols when it expires. However, when I use the "end date" enabled, it enrolls but does not unenrol at the expiration time I set; in fact, the expiration time is not set by the plugin, so the student gets an unlimited access. When I try it with manual enrolments or other plugin, the expiration time is listed and saved to database, and the unenrolment works for them since they set the "end date". I hope I could make it clear. I hope you have an easy solution within the plugin itself. I would be grateful if you let me share my screen over skype to show the issue better; I have added your skype today. If you may spare 5 mins, the issue will be better understood.
Best
Tumer
Hello Tumer,
end date, as for other enrolment plugins, just blocks new enrolments after that date but keep active old enrolments until expiration.
If you want to block access to course after a date I think you can add a date restriction rule in user filter setting it until your "End date". Date restrinction needs to be enabled in Autoenrol plugin administration settings.
You need to check administration setting "Auto unenrol action" in order to do the right thing when the rule does not match anymore (unenrol user, keep enrolled, disable enrolment, etc).
HTH,
Roberto
Hi Roberto, hope you are doing fine. First of all, thank you for this great plugin. I have installed and it works fine for me, except one thing. When I set the end date for a course, it doesn't work. It works when I set "duration" though. Is there a bug or something I am missing? I tried all scenarios but couldn't solve the issue.
Hello Spoony,
can you better explain what's happens? Did you get some errors?
Thanks,
Roberto
Cannot install on Windows platforms
Hello Henrique,
I'm sorry.
There was a bug and I fixed it today.
Thanks,
Roberto
Hi Roberto, so my planned task is running but my students are not automatically unsubscribed, do you know what else I can do?
Hello Henrique,
student unsubscriptions are managed from the "Autoenrol expirations check" scheduled task.
It should be run every 10 minutes.
Please check its logs for more information.
Hi Daniel,
that is no more needed.
From 2.2 release user cache is refreshed after enrolment so courses are shown in dashboard after login.
Hello I'm trying to enter the duration of the users' subscription and it doesn't remove the user, do you know what it can be?
Hi, Would it be possible to put a pop-up on the screen after they log in and are enrolled in a class? The pop-up would ask them to refresh the (dashboard) page, so they can see the new course in the 'overview' block.
Hi, Roberto. I am the Admin, but I now understand. I found the plugin setting, "enrol_autoenrol | loginenrol" and I get it now. Thank you, Roberto.
Hi Blair,
if you don't see the Enrol When setting in instance configuration probably is because your administrator disabled "enrol on login" feature or your role can't enrol on login.
The only thing you can "set" is "enrol on loading the course" so the setting in not shown.