Select Moodle version:

Enrolment: AutoEnrol

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.
Maintained by: Picture of Mark Ward Mark Ward
for Moodle
2.0, 2.1, 2.2, 2.3, 2.4, 2.5

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.




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

Comments RSS

Show comments
  • Picture of Timothy T.
    Sat, Jan 11, 2014, 6:10 AM
    Running Moodle 2.5+ and when looking into the course > settings > enrollment methods...I see this error:

    Capability "enrol/autoenrol:config" was not found! This has to be fixed in code.
    line 389 of /lib/accesslib.php: call to debugging()
    line 178 of /enrol/autoenrol/lib.php: call to has_capability()
    line 229 of /enrol/instances.php: call to enrol_autoenrol_plugin->get_newinstance_link()

    Any ideas how to resolve?
  • Me
    Mon, Jan 13, 2014, 12:40 AM
    My error was from the integrated upload plugin installer in Moodle. Had no trouble when I installed it manually by copying the plugin into the /enrol folder.
  • Me
    Mon, Jan 13, 2014, 12:48 AM
    How hard would it be to add a welcome message like the self enrol plugin?
  • Picture of Stephen Bassan
    Wed, Jan 15, 2014, 2:32 PM
    HI all,
    i need to find the AUTO ENROL Configuration just like in the screen shots at the top of this screen.. could anyone tell me were this is located. i am using version 2.3 or 2.5. the plugin installed fine. thanks
  • Also me
    Wed, Jan 15, 2014, 4:48 PM
    Hi Stephen
    You probably just need to enable Auto enrol.
    Settings-->Site administration-->Plugins-->Enrolments-->Manage enrol plugins.
  • Picture of Stephen Bassan
    Thu, Jan 16, 2014, 8:03 AM
    Hi Same, it is enabled...
  • Picture of Peter Horrox
    Thu, Jan 16, 2014, 8:47 PM
    Hi Dave,
    this missing English language folder error is caused by there not being a PHP closing tag in the language file contained in /lang/en

    Just open it up in the text editor of your choice and add "?> "to the end of the file (without quotes). save and attempt to reinstall.
  • Picture of Blair F.
    Thu, Jan 30, 2014, 8:00 AM
    Thanks, Peter Horrox, for providing that fix. It worked great.
  • Picture of Blair F.
    Thu, Jan 30, 2014, 8:02 AM
    I was hoping to use this plugin to ensure that all new students are auto-enrolled in our Moodle for Students course and all new Teachers in our Moodle for Teachers course. In my mind, this would result in them seeing this course on their front page the first time they log in. However, in reality, there's a bit of a delay. It seems that the auto-enrol takes place after the front page has loaded, so the course doesn't show up until it's refreshed. Is there any way around this?
  • Picture of Moisés Hernández
    Thu, Jan 30, 2014, 6:57 PM
    Hey, i was thinking about the posibility of making this plugin abble to auto-enrol a student in a specific course (ex: course two) when other course (ex: course one) was finished by the student. That's possible to do with your plugin?

    Thank's for the attention, Moises.
  • B.Havel
    Fri, Feb 14, 2014, 8:20 PM
    Hi, can I hope in version 2.6? Thanks
  • Just wondering . . .
    Thu, Feb 20, 2014, 3:42 PM
    I'm also curious: is there any possibility of a version to support Moodle 2.6??

  • Picture of Warren Cole
    Fri, Apr 11, 2014, 2:16 PM
    Can you confirm the options of which fields are available for automatic grouping when using AutoEnrol. In the version I have only 4 fields are available for automatic grouping...I need more from the profile.
  • Picture of Eric Gagnon
    Wed, Apr 16, 2014, 10:52 PM

    To use the plugin in Moodle 2.6, there are a few deprecated calls that need to be changed (6 calls to get_context_instance):

    Use context_course::instance( instead of $context = get_context_instance(CONTEXT_COURSE,
    context_system::instance(); instead of get_context_instance(CONTEXT_SYSTEM)

    The plugin seem to work fine with the fix (was generating some errors without the fix but they may be not visible if debugdisplay is not visible.
  • Picture of Eric Gagnon
    Thu, Apr 17, 2014, 1:36 AM
    Hello again. I'm still relatively new to Moodle and realised that the deprecation error was really just warning at this point (see I have done a local fix because I'm working as a dev and want to keep debug on.
1 2 3
Please login to post comments