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.
1682 sites
86 fans
Moodle 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8

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 Michael Hughes
    Thu, May 2, 2019, 7:29 PM
    Hi, had high hopes for this plugin and although it works nicely in M3.6 was sorry to find it only has very simple filtering rules ... that is you can only apply 1 filter. Do you have plans to develop this so multiple filters could be applied ... for example autoenrol only part-time AND students on a particular route code (data coming from 2 profile fields)?
  • Bobo
    Fri, May 3, 2019, 5:11 PM
    Hi Michael, the simple filter is used with white value to autocreate course groups. I think that is not easy to manage if multiple filter will used. Anyway multifilter is in the roadmap, I can't tell you when it will be released. I'm working on Reservation plugin for now.

  • Bobo
    Fri, May 3, 2019, 5:35 PM
    Hi Rob,
    if I understand you had configured autoenrol to enrol users on site login.
    This is a known issue but I can't solve because is a moodle core issue.
    When the user login in he/she is enrolled in autoenrol courses but this is done after moodle setup user info so the user is enrolled but it's not shown in dashboard.
    The user need to wait for sometime or logout and login again to get it in the dashboard.

  • Picture of Ricardo Poyato
    Tue, May 7, 2019, 6:43 PM
    I have the same problem, moodle 3.6.3, autorol configured to enrol on site login, and having the invalidsesskey message.
    But in the configuration, when i put "Send course welcome message = NO" the error disappear.
  • Bobo
    Thu, May 9, 2019, 8:52 PM
    Hi Ricardo,
    did you tested several times with "Send course welcome message" set to Yes and set to No?
    Is the problem directly connected with "Send course welcome message" setting?
    I'm ask to you a confirm because I tried to reproduce the problem with several user roles Student, Admin, Teacher but I can't get the invalidsesskey error message.
    Please help me to catch the bug, give me a detailed report of what you do and with which plugin version.

  • Picture of Edd Talbot
    Wed, May 15, 2019, 4:58 PM
    Is it possible to amend/control the group enrolments so that if a group already exists of the same name that was created manually, the plugin adds the new enrolment to this group rather than creating a new group?


  • Bobo
    Wed, May 15, 2019, 5:13 PM
    Hi Edd,
    groups are identified in autoenrol plugin by Group ID number so you can create groups manually but, when you add autoenrol plugin, you need to popolate the Group ID number with "autoenrol||" .
    In this way autoenrol will use the old groups.

  • Picture of MAG II
    Tue, Jul 16, 2019, 8:50 AM
    Hello -
    I recently upgraded to Moodle 3.6.3+, and I am running Auto Enrol 2.1. For the enrollment configuration I am attempting to filter by Department. I add the Department title to a user's profile, and the user does not get automatically enrolled upon login. I am not sure what else I can do. Any ideas what is wrong?
  • Bobo
    Tue, Jul 23, 2019, 5:43 PM
    Hello MAG II,
    I think you have fallen in a know issue.
    The moodle login procedure set the user status before the autoenrol plugin so you see the real enrolments when the user status is reload, tipically on next login.

  • Picture of Adam Nielsen
    Thu, Aug 15, 2019, 8:34 PM
    Great Plugin! Thank you.

    Is it possible to enable auto enroll in all courses at once, or do I have to select every single course and add the auto-enrolment method?
  • Bobo
    Mon, Aug 19, 2019, 4:00 PM
    Hello Adam,
    you can enable any enrolment plugins in all new courses in plugin settings. I think there is not a way to do it in old courses other than manually.
  • Picture of Olivier Pelletier
    Wed, Oct 2, 2019, 1:45 AM
    Hi guys!
    I'm trying your plugin and it looks to be good, but I get few questions:
    1. Is it possible to delete this auto enrolment method?
    2. Is it possible to manage this auto enrolment method?
    3. Is it possible to stop this auto enrolment method?
  • Bobo
    Wed, Oct 2, 2019, 2:34 PM
    Hi Olivier,
    you can add, delete, manage and disable autoenrol in any course.
    Here you find all infos about how to manage an enrol method:

  • Picture of Olivier Pelletier
    Wed, Oct 2, 2019, 10:44 PM
    Hi Roberto,
    I know than I can manage enrolment method with the "Enrolment method" panel (edit and delete icons), but I didn't see the "auto enrolment method" in this panel. Do I have to do something to show the "auto enrolment method" in the "Enrolment method" panel? I already add this method to my course, I can edit it whem I created it, I can use it, but it didn't show in the panel and I can't see how many users signed with this method.
  • Bobo
    Sat, Oct 5, 2019, 12:03 AM
    Hi Olivier,
    you need to enable the autoenrol plugin in the administration page:

1 2 3 4 5 6 7 8
Please login to post comments