Enrolment ::: enrol_autoenrol
Maintained by Mark Ward, RobertoRoberto Pinna
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.
Latest release:
3084 sites
121 fans
Current versions available: 3

When added to a course this enrolment plugin can enrol users onto a course automatically, either as they log in to your Moodle site or as they access to the course.
It was at first intended for use on site-wide courses such as "Moodle Help" or "Learner Voice".
In addition the plugin has advanced functionality to support automatically grouping and filtering users based upon their profile fields. Depending on how your user accounts are setup this may help you to give access to certain user groups.

Configuration of the plugin is managed by two capabilities which allow administrators to easily control who has access to the plugin.

New advanced user filtering (available from 2.3)
A complete rewrite of Autoenrol filter that use moodle standard availability interface adds great flexibility in user filtering.
The moodle profile availability core plugin unfortunately does not include language and authentication method. 
If you need them, you can install additional availability plugins like Restriction by language and Restriction by authentication.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5


Mark Ward (Lead maintainer)
Roberto Pinna: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Roberto
    Mon, Jul 5, 2021, 6:39 PM
    Hello Shreya,
    unfortunately Enrolment Timer block only works with Self Enrolment.
    You can try to ask to Enrolment Timer developers to add support to other enrolments method that set enrolment duration.
    They should check the user enrolment instance and use the duration set in that instance.

  • Mon, Jul 26, 2021, 6:18 PM
    Hi there. If my course also has guest access enabled as an enrolment method, this seems to stop auto enrol from automatically enrolling the student. Instead the student is presented with a cog icon with the option 'Enrol me on this course'. I have set 'Always Enrol' to 'Yes'. If a course does not have guest access enabled, auto enrol works as usual. Is this by design? Ideally, I would like authenticated users to be auto enrolled on the course, even if guest access is available. Moodle 3.10.3, Auto Enrol 2.2.
  • Roberto
    Mon, Jul 26, 2021, 6:23 PM
    Hi Kirk,
    enrolment process follow the enrolment instances order so need to be move autoenrol before guest access using arrows in course enrolment methods page.

  • Mon, Sep 13, 2021, 6:16 PM
    Hi men! After install, I can't see "Auto Enrol" method in the Enrolments page. Can some help me plis?
  • Mon, Sep 13, 2021, 8:45 PM
    Hi Roberto,
    Is it possible to auto-enrol students without the 'Enrol When' option?
    When the student has matched the rules set in the User Filtering section (complete a list of courses), they are enrolled into the course. No need to logout and log back in. No need to load the course (which they cant see).
    This does work when the 'Synchronise Autoenrol task' scheduled tasks is enabled and set to run every minute. But I'm concerned that this will put extra load on the database.
  • Roberto
    Mon, Sep 13, 2021, 9:10 PM
    Hi Neil,
    I'm sorry but there are only two ways to perform an elaboration in Moodle: with the user action (login or load the course in this case) or with a scheduled task.
    Generally run the scheduled task one time by night it's enough to synchronise enrolments.
    Why you need to run it every minute?

  • Wed, Sep 22, 2021, 6:32 AM
    I must be going blind. I just updated the plugin on our development site and now there seems to be no way to indicate enrolment on loading of the course. I'm feeling pretty silly, here.
  • Roberto
    Wed, Sep 22, 2021, 9:33 PM
    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.
  • Fri, Sep 24, 2021, 2:05 AM
    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.
  • Sat, Nov 20, 2021, 6:33 AM
    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.
  • Sat, Nov 20, 2021, 7:08 PM
    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?
  • Roberto
    Mon, Nov 22, 2021, 4:32 PM
    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.
  • Roberto
    Mon, Nov 22, 2021, 4:38 PM
    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.
  • Tue, Nov 23, 2021, 7:53 PM
    Hi Roberto, so my planned task is running but my students are not automatically unsubscribed, do you know what else I can do?
  • Roberto
    Fri, Nov 26, 2021, 11:02 PM
    Hello Henrique,
    I'm sorry.
    There was a bug and I fixed it today.

1 2 3 4 5 6 7 8 9 10 11 12 13 14
Please login to post comments