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.
1669 sites
88 fans
Current versions available: 2

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
  • 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:

  • Picture of Mark Berthelemy
    Sat, Dec 28, 2019, 6:19 PM
    Hi there,
    This is a really useful plugin. Thanks.
    I am wondering how it might be adapted so that only members of one or more cohorts are allowed to access a particular course?

    Our use cases are:

    1) All users should be able to access certain courses, eg. Course 101 & Course 102
    2) Users in Cohort A should be able to access Course 101, Course 102 and Course 201
    3) Users in Cohort B should be able to access Course 101, Course 102, Course 201 and Course 301

    My thinking is that we'd need to add a filter to the plugin which looked for cohort membership. And provide course admins with a tick list of cohorts for which to allow enrolment.

    But I've no idea how complex that would be to implement in the current plugin?

  • Bobo
    Wed, Jan 8, 2020, 9:56 PM
    Hi Mark,
    I think you can use a couple of instances of cohort sync enrolment plugin to do that.
    Adding it to autoenrol feel like a duplication of features.

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