Enrolment ::: enrol_autoenrol
Maintained by Mark Ward, RobertoRoberto Pinna
Adds functionality to automatically enrol users onto a course, either as they log in to your Moodle site or as they access a course. This plugin was at first intended for use on courses which you want all users to be able to access but can also be configured for more advanced purposes as reserved access courses. Using the new user filtering you can think at Autoenrol as a Swiss Army knife for Moodle enrolments.

AutoEnrol 1.2

Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5
Released: Monday, July 1, 2013, 4:24 PM

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.

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.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 compatability 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 for Burton & South Derbyshire College (UK) with support from Matthew Cannings of Sandwell College (UK).



Released Under the GNU General Public Licence

Version information

Version build number
Version release name
Can be updated from
0.9, 0.91, 1.0, 1.001, 1.1
Can be updated to
1.3, 2.0, 2.0+, 2.1, 2.1.1
Stable version
MD5 Sum
Supported software
Moodle 2.1, Moodle 2.0, PHP 5.3, PHP 5.2, Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5
  • Latest release for Moodle 2.0
  • Latest release for Moodle 2.1
  • Latest release for Moodle 2.2
  • Latest release for Moodle 2.3
  • Latest release for Moodle 2.4
  • Latest release for Moodle 2.5

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