Enrolment: AutoEnrol

Maintained by Picture of Mark WardMark Ward, BoboRoberto 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.
2198 sites
94 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
  • Picture of Luis Cattel
    Sat, Apr 4, 2020, 12:20 AM
    It works like a charm!
    I struggled with the User Filtering because I didn't found easily the short name for self registered authentication method, so I think it´s usefull to say that it is: "email". I´m using it to autonerol new self auto-registered users in a wellcome course so they don´t start with a blank list.
  • Picture of David Gómez
    Sat, Apr 4, 2020, 8:24 AM
    Hi guys! First of all, thank you very much for your work. Really useful, you're very kind sharing it with the community. I wanted to ask you if there's a way to set the unenrollment date for the users that are auto-enrolled with your plugin, like it's possible with the "default" enrolment methods. In case not, are you planning to include this feature? I think could be of great use for many Moodle Admins. Cheers!
  • Bobo
    Mon, Apr 6, 2020, 4:47 PM
    Hi David,
    no, at this time.
    The self enrolment plugin define an enrolment duration and I think that we can add it to autoenrol in the next release.

  • Picture of Pete Jones
    Thu, May 28, 2020, 6:56 AM
    Thanks for this wonderful plugin, Mark and Roberto.

    It does exactly what I want it to: automatically enrol users on to a course when they log in for the first time.
  • Picture of Vinod Singh
    Fri, May 29, 2020, 8:25 AM
    Self enrolment has a configuration property "Unenrol inactive after" that unenrols users after specified days ot inactivity. Having a similar configuration here also will be helpful.
  • Picture of Davo Santo
    Sat, Jun 13, 2020, 8:54 AM
    Hi, Can the plug-in auto-enroll an LDAP user into a cohort at first login? The courses are already assigned to a cohort .. . I'd just like to assign a new user to the cohort. Thanks in advance!
  • Bobo
    Wed, Jun 17, 2020, 2:36 PM
    Hi Davo,
    enrolment plugins can only enrol users into courses. Cohort enrolment need to be done manually or with user bulk upload. You can take a look to https://moodle.org/plugins/local_ldap.
  • Bobo
    Wed, Jun 17, 2020, 2:42 PM
    Hi Vinod,
    we can add that feature in next release. I added it as github issue.
  • Picture of Freddie Gay
    Mon, Jul 13, 2020, 10:19 PM
    Been tested on Moodle 3.9 yet?
  • Bobo
    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?
  • Bobo
    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?
  • Bobo
    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.
1 2 3 4 5 6 7 8 9 10
Please login to post comments