Enrolment: AutoEnrol

Maintained by Picture of Mark Ward Mark Ward, Bobo Roberto 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.
1382 sites
65 fans

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 Jan Eberhardt
    Mon, 23 May 2016, 9:08 PM
    Hi, your git repository does not fullfill the moodle standards, which means it is impossible to add the plugin into an existing moodle repository. version.php and all source files belonging to your plugin have to be in root of your git repository and not in a subdirectory like 'enrol/autoenrol'. If I want to use your git repo I had to clone it in the moodle root directory, which I can't since there is the moodle git repository. Also some files of your root directory are useless (like the xml files) or will change my settings (.gitignore). Can you please change your repository to the moodle standards (https://docs.moodle.org/dev/Plugin_contribution#Repository) ? Thx in advance!
  • Picture of Anderson Hsu
    Tue, 5 Jul 2016, 10:26 PM
    Dear partners,
    Can we use the plugin for the quiz and feedback activity when some users are not enrolled into some courses, they can also join these activity and can find their grades in the grade book . Thank you.
  • Picture of Anita Raharjo
    Tue, 9 Aug 2016, 9:23 PM
    Hi Mark,
    We've been using this plugin and it has been very useful. However now we need to upgrade our Moodle 3.1, so we're wondering if this plugin will still work well or will the plugin be developed to be compatible with 3.1?
    Thank you!
  • Picture of Adolfo Franco
    Fri, 3 Feb 2017, 1:59 AM
    Congrats, nice plugin! I'm no programmer but I was able to alter the code to filter by username, instead of email, for a specific purpose.
    We have a few users-to-be from an external database, who we need to "reserve" the enrollment so that they get in the course when they signup on first login.
    That would be nice from you to officially add "username" to the filter options.
  • Bobo
    Wed, 22 Mar 2017, 10:44 PM
    I made several changes and fixes to Auto Enrol plugin and I submitted a pull request to Mark on Github last December to merge to his repository.
    My changes are on Github (https://github.com/bobopinna/moodle-enrol_autoenrol) and, if needed, I could help Mark to maintain Auto Enrol plugin.
  • Picture of Mark Ward
    Thu, 30 Mar 2017, 2:57 AM
    Hi everyone,

    Thanks for supporting the plugin - I'm planning some time for upgrading and modernising AutoEnrol but in order to understand how best to progress things I could use more information about how it's being used.

    I've created a survey (link below) which will be really important in deciding the next steps, so please do take a moment to complete it if you're using AutoEnrol.


    Thanks again!

  • Picture of Urpo Karhula
    Thu, 30 Mar 2017, 4:54 PM

    Please consider developing just a one Autoenrol-plugin with other developers instead of the 3 we have now, I'm referring to these;

  • Picture of Tonie Miller
    Wed, 14 Feb 2018, 2:39 AM
    Hello, I am trying to set up multiple user accounts with for testing Moodle over a continuous period of time, is the Autoenrol plugin the best way to achieve this or is there a better set up? We want to make the process easy for everyone to follow. Can someone walk me through the steps? - I'm new to Moodle and am just starting to understand the back end. Thank you!
  • Picture of ian hatton
    Thu, 22 Feb 2018, 10:28 PM
    For reference 2.0 (2017122500) does not work on 2.8 (and assuming also 2.7 and 2.6). The old version listed here does, unfortunately I wasn't able to downgrade after updating to (2017122500). A little bit of bodging with the version numbers allowed this though and the site is working again. NB, when I say doesn't work, it completely broke Moodle's admin menus, couldn't even get to notifications, WSOD with no errors.
  • Picture of ian hatton
    Thu, 22 Feb 2018, 10:31 PM
    To avoid confusion, 2.6, 2.7 and 2.8 should be removed from v2.0 and people should use v1.3 for those versions.
  • Bobo
    Thu, 22 Feb 2018, 10:39 PM
    Thanks for the message. I removed old moodle versions from plugin 2.0 compatibility list.
    Now I'll check it on moodle 2.6-2.8 and try to fix it.

  • Picture of ian hatton
    Fri, 23 Feb 2018, 12:56 AM
    No worries Roberto, just didn't want anyone else experiencing the same issues after updating their plug-ins smile I suspect most users aren't on 2.8 anyway!
  • Picture of Class Revision
    Fri, 20 Jul 2018, 6:36 PM
    I am getting an invalid sesskey error after adding this enrolment plugin to my courses

    Moodle: 3.5 (Build: 20180517)

    AutoEnrol : 2.0 (2018022600)

    I have custom profile field called Class to enrol users automatically upon login.

  • Bobo
    Thu, 6 Sep 2018, 6:01 PM
    sorry but it doesn't seem to be a bug related with autoenrol plugin.
    I've tried to reproduce your problem but I never get any errors.

    If you think it's still related to autoenrol plugin, please fill an issue on GitHub with a step by step test guide to reproduce your problem.

  • Picture of Blair F.
    Sat, 10 Nov 2018, 6:53 AM
    I really like that you maintain a change log on the version page. I wish everyone did that!
1 2 3 4 5 6 7
Please login to post comments