Enrolment: AutoEnrol

Maintained by Picture of Mark WardMark Ward, RobertoRoberto Pinna
Adds functionality to automatically enrol users onto a course, either as they log into your Moodle site or as they acess a course. This plugin is primarily intended for use on courses which you want all users to be able to access but can also be configured for more advanced purposes.
2486 sites
107 fans
Current versions available: 2

When added to a course this enrolment plugin can enrol users onto a course automatically, either as they log into your Moodle site or as they click on the course. It is intended for use on site-wide courses such as "Moodle Help" or "Learner Voice".

In addition the plugin has advanced functionality to support autmatically grouping and filtering users based upon their attributes. Depending on how your user accounts are set
up this may help you to give access to certain user groups.

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


Screenshot #0
Screenshot #1


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

Comments RSS

Show comments
  • Roberto
    Tue, Jul 21, 2020, 7:12 PM
    I made a few tests on Moodle 3.9 and it works fine. I think I will release a new version in August.
  • Picture of Chad Henderson
    Sat, Aug 1, 2020, 12:23 AM
    Thanks for the plugin, sounds like what I need and I think I am almost there.. when creating an AutoEnrol enrollment trigger (enrolment method) for a course and using the "User Filtering" (tested with "authentication" and "City/town"), should I being seeing the course enrollment immediately, like when a new user self-registers into the LMS, or is it on some type of schedule/cron?
  • Roberto
    Tue, Aug 4, 2020, 9:31 PM
    Sorry Chad,
    but the automatic course enrolment could be done on user site login or on course access. You can choose it in advanced settings of the autoenrol plugin.
  • Picture of Chad Henderson
    Tue, Aug 4, 2020, 9:45 PM
    Thank you so much. Just clarifying my query.. so I want a user who self-registers (by email) and ultimately logs in to the LMS to automatically get assigned a course(s).. so that their default landing page (site) is populated with the list "enrolled" courses which are defined by course by AutoEnrol enrollment method and displayed by the "Front page items when logged in" setting. Are you saying that workflow is not possible?
  • Roberto
    Tue, Aug 4, 2020, 9:53 PM
    This is possible, but users can't see autoenrolled course on the first login because Moodle get the list of user courses before call autoenrol procedure.
    They see autoenrolled courses on the next login.
    I tried to find a workaround but I couldn't arrange it.
  • Picture of Chad Henderson
    Wed, Aug 5, 2020, 7:47 PM
    Thank you Roberto. I am able to get the AutoEnrol to work (avoid user action to enroll) when a user finds and opens a course, but not when logging in (regardless of the enrollment method settings or number of times logging in). I must be doing something wrong. But either way, such a great plugin and appreciate all of your work... but it's really not getting the user far enough down the road as they land in the LMS for the first time. I want the user to arrive on their initial screen (immediately after email registration) with the "enrolled courses" as tiles as the first thing they see. Thanks again for you support.
  • Picture of Israel Pelayo
    Mon, Aug 17, 2020, 1:49 AM
    Mark and Roberto, thank you very much for this excellent plugin. It would be great if they could add the option to enroll a user when a new user is created, this in relation to the "Enrol When" function. At the same time, I consider that adding the possibility of combining several filters (in the "User Filtering" section) as conditions would make this plugin a very complete module. Thank you for your excellent work.
  • Picture of Madel Castro
    Thu, Sep 17, 2020, 5:19 AM
    Hi Roberto, when do you plan on releasing a new version for v3.9?
  • Roberto
    Thu, Sep 17, 2020, 7:35 PM
    the current version could be used on Moodle 3.9.
    I hope I could release soon a new version with new features. but now I can't tell you when.

  • Picture of James Chinnery
    Mon, Oct 12, 2020, 5:11 PM
    Thank you for your very helpful plugin!
    Ihave it auto enrolling students to a course as they log in, (and it does so) but they can only see the relevant course (in My Courses on Dashboard) after doing a Shift-Refresh or logging out and back in.
    Any ideas how I could have the "My Courses" recognise the enrollment quicker?
    I'm using Moodle 3.8, Boost and Auto Enrol 3.8 on Windows 10, Firefox
  • Roberto
    Tue, Oct 13, 2020, 11:17 PM
    Hello James,
    this problem is not managed from autoenrol plugin but by moodle core that setups user data before finish user enrolments.
    Today I worked hard to try to find a workaround to this problem and now I hope I found it.
    I've already posted on Github a commit that seems to solve the problem. Please test it and let me know.

  • Picture of Natalie .
    Fri, Dec 4, 2020, 7:26 PM
    is it possible to enter OR values in the "allow only" field?
    I'd like to set up this:
    Group by: email
    Allow only: @xy.de OR @yz.com
  • Roberto
    Fri, Dec 4, 2020, 11:04 PM
    Hi Natalie,
    you can't do it in that field.
    If you need to permit access with a OR logic you can setup more autoenrol instances with a single rule in each one.
    Implement more complex rules is in the roadmap but I don't know when it will be released.
  • Picture of Paul Beckwith
    Tue, Dec 8, 2020, 4:51 AM
    Tried using this in 3.9, it works on a single activity format however causes the activity to launch straight away. When changes to any other course format doesn't work.
  • Roberto
    Wed, Dec 9, 2020, 6:04 PM
    Hello Paul,
    can you explain what doesn't work? What's your expected behaviour?
1 2 3 4 5 6 7 8 9 10
Please login to post comments