Enrolment ::: enrol_autoenrol
Maintained by Picture of Mark WardMark 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.
Latest release:
2637 sites
111 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, 3.9, 3.10

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
  • Roberto
    Fri, Jan 22, 2021, 8:54 PM
    Hello Bruno,
    if you did not set autoenrol on login, autoenrol works on course access.
    You can set this and other advanced feature clicking on Expand All or Show more... links in autoenrol settings page.
  • Picture of Bruno Piu
    Fri, Jan 22, 2021, 9:49 PM
    Hello Roberto,
    in the autoenrol settings page, I've set the following fields:
    Role Student
    Enrol When Logging into Site
    Always Enrol Yes

    and then Filtering:

    Group By Department
    Allow Only TestDip
    Soft Match Yes
    Limit 0

    It's correctly configured?
  • Picture of Joanna Beaver
    Wed, Feb 24, 2021, 8:34 PM
    Hello, in the configuration of an autoenrol instance, is it possible to Allow only [role]?
  • Roberto
    Wed, Feb 24, 2021, 8:39 PM
    Hello Joanna,
    Autoenrol is an enrolment plugin, it set the role in a course for users that match the rule.

    If I understand what you ask this is not possible because users do not have a role in a course before the enrolment.

  • Picture of Joanna Beaver
    Wed, Feb 24, 2021, 8:58 PM
    Thanks Roberto, I was thinking of manager role at system level. We need the managers actually enrolled in the course as opposed to just being able to view without participation. On that note, I am trying instead to Allow by email, but even setting to a specific email address it is not enrolling the Manager. I have set Always enrol to Yes, in case that was required.
  • Roberto
    Thu, Feb 25, 2021, 12:17 AM
    I think that Manager role has capabilities that do not permit auto enrolment.
    Managers can enter into courses without enrolment so no enrolment procedure is called.
    Manual enrolment is the only way you can use to enrol them in a course.

  • Picture of Paulo Paiva Paiva
    Sat, Feb 27, 2021, 12:04 AM
    Is it safe to use in 3.10?

    Thank you!
  • Roberto
    Tue, Mar 2, 2021, 6:15 PM
    Yes, it also works with Moodle 3.10
  • Picture of Chris Baldwin
    Thu, Mar 11, 2021, 4:22 PM
    Hi There
    I want to delete the plug in from a course as it was applied in error and has enrolled learners who didnt need to be on the course and I can disable it but not delete it - we are running Moodle 3.8.4+ (Build: 20200717)
  • Roberto
    Thu, Mar 11, 2021, 5:43 PM
    Hi Chris,
    it's strange that it miss.
    Did you installed a very old version of Autoenrol?
    I added instance delete feature in 2.0 plugin version, about 4 years ago.

  • Picture of Chris Baldwin
    Thu, Mar 11, 2021, 6:03 PM
    Hi Roberto
    thanks for the rapid response - we are runnning version 2011101301 (according to my moodle info) I will try updating the plug-in to the current one (enrol_autoenrol_moodle310_2019111800) tonight
    Chris B
  • Picture of Sikander Nawaz
    Fri, Mar 19, 2021, 5:31 PM
    i want to allow free enrolments for the users with iodic authentication. i did following

    1- installed Auto Enrol plugin
    2- Enabled Auto Enrol in Enrolments section from dashboard
    3- Default role assignment is set to Student
    4- Now for selected course i added Auto Enrol as enrolment method with following settings
    4.1 Group By : Authentication
    4.2 Allow Only : oidc
    4.3 Soft Match : No
    Limit : 0

    Now after doing this i logged in using 365, in db my enrolment method is oidc but then i am not enrolled in this course.

    Can you please advise me what am i missing
  • Roberto
    Fri, Mar 19, 2021, 6:41 PM
    with standard configuration, enrolment will be placed on course access. If you want to enrol on user login you need to set it in View more.. settings.
    Take note that auto enrol will done on login but the course do not appears in user dashboard because the dashboard content is loaded before the enrolment and I did not find a way to force reloading.
    The user will find the course in dashboard from the second login.

  • Picture of Ratish Saini
    Sun, Apr 4, 2021, 8:47 AM
    Can grouping be done on the custom user profile field?
  • Roberto
    Tue, Apr 6, 2021, 3:12 PM
1 2 3 4 5 6 7 8 9 10 11
Please login to post comments