Enrolment ::: enrol_autoenrol
Maintained by Mark 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.

AutoEnrol 1.3

Moodle 2.6, 2.7, 2.8
Released: Monday, December 1, 2014, 3:48 AM

AutoEnrol Enrolment Method

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 automatically 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.

The plugin adds new permissions to help you manage the use of the plugin. The first permission called "config" allows the user to add a new instance of the plugin and change only the most basic options. The second permission is called "method" and gives users the ability to change when the user will be enrolled on a course, and what type of enrolment it will be (ie something other than student). There are further permissions relating to the plugin which should be reviewed through Moodle's "Define Roles" page.


v1.3 - Release for Moodle 2.6, 2.7 and 2.8 Groups now identified by group idnumber instead of name (so feel free to rename groups!) New setting option to control the group cleanup behaviour v1.2 - New functionality and tweaks: It is now possible to add multiple instances to a single course. Added an option to give instance a custom label. Filtering functions now allow for partial matches. Expanded filtering functions to include email address. Added an option to limit number of enrolments. By default, users are now only enrolled if they aren't already enrolled on a course. Individual users can now be manually unenrolled through Users > Enrolled Users. Added a permission for users to unenrol themselves if not enrolling during login. v1.1 - Minor update. Improved instance configuration form compatibility with Moodle 2.5 v1.0 - Stable release. New config option to "Add instance to new courses" v0.91 - Bug Fix - Filtering was being bypassed when enrolling on site-login v0.9 - Beta release


Copy the plugin directory "autoenrol" into moodle\enrol. Check admin notifications to install.


The block has been written and is being maintained by Mark Ward (

Thanks to

With thanks to various friends for contributing, especially Matthew Cannings.



Released Under the GNU General Public Licence

Version information

Version build number
Version release name
Can be updated from
1.1, 1.2 (2013070100)
Can be updated to
2.0 (2017122500), 2.0+ (2018022600), 2.1 (2018101902), 2.1.1 (2019111800)
Stable version
MD5 Sum
Supported software
PHP 5.3, PHP 5.4, Moodle 2.6, PHP 5.5, Moodle 2.7, PHP 5.6, Moodle 2.8

Version control information

Version control system (VCS)
VCS repository URL
VCS branch
VCS tag

Default installation instructions for plugins of the type Enrolment

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myenrol") in the "enrol" subdirectory.
  4. Visit to finish the installation