AutoEnrol

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.
Latest release:
4711 sites
1k downloads
174 fans
Current versions available: 1

When added to a course this enrolment plugin can enrol users onto a course automatically, either as they log in to your Moodle site or as they access to the course.
It was at first 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 profile fields. Depending on how your user accounts are setup this may help you to give access to certain user groups.

Configuration of the plugin is managed by two capabilities which allow administrators to easily control who has access to the plugin.

Autoenrol filter use moodle standard availability interface that adds great flexibility in user filtering.
You can filter access to your courses using core availability plugins like date, user profile and sets of them or use additional availability plugins like: badge, other course completion, payments, etc...
The only limit is that the availability plugin rule should evaluate elements available outside courses.

The Moodle availability plugin for user profile fields unfortunately does not include language and authentication. 
If you need them, you can install additional availability plugins like Restriction by language and Restriction by authentication.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6

Contributors

Mark Ward (Lead maintainer)
Roberto
Roberto Pinna: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Olivier Pelletier
    Wed, 2 Oct 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.
    Thanks!
    Olivier
  • Roberto
    Sat, 5 Oct 2019, 12:03 AM
    Hi Olivier,
    you need to enable the autoenrol plugin in the administration page:
    https://docs.moodle.org/37/en/Enrolment_plugins

    Cheers,
    Roberto
  • Mark Berthelemy
    Sat, 28 Dec 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?

    Thanks,
    Mark
  • Roberto
    Wed, 8 Jan 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.

    HTH,
    Roberto
  • Mark Berthelemy
    Tue, 21 Jan 2020, 11:00 PM
    Hi there,

    I've set the AutoEnrol plugin up on a course, with default settings, and it's the first enrolment method in the course (amongst a few others).

    But users cannot get past the enrol screen.

    I was hoping to use it to auto-enrol just the people with a particular email domain (eg. @cabi.org). Is that not possible?

    Thanks,

    Mark
  • Oleg Kovalenko
    Wed, 22 Jan 2020, 3:55 PM
    Hello.

    I found some unexpected behaviour in plugin.
    After any user logins sync_user_enrolments method is called. It takes all instances of AutoEnrol and try to enrol current user with them, if user fits the instance rules.
    But method takes even disabled instances - so user could be enrolled in course even if AutoEnrol instance disabled in this course.
    Could you please check it?

    Thanks,
    Oleg.
  • Roberto
    Wed, 22 Jan 2020, 8:26 PM
    Hello Oleg,
    I fixed it.
    You can get it on github.

    Thanks,
    Roberto
  • Scott Burnett
    Thu, 6 Feb 2020, 4:26 AM
    Hello, I need help. Well, technically, a colleague needs help. She has created a field, in the field the person can have AB, AC, AD. Or they can have a combination of AB and AC, or AB and AD. When she separates these do they need a comma or semi-colon. Also, when she saves the auto-enrolment method, it does not save the field that it is supposed to pull from. Any thoughts?
  • Roberto
    Thu, 6 Feb 2020, 7:26 PM
    Hello Scott,
    it depends by the shortname chosen for your field. Probably it contains non alphabetic chars.
    There was a bug in autoenrol field type check that clean non alphabetic chars.
    Now I fixed that bug on github, you can already download it.

    Thanks,
    Roberto
  • Safeen Shun
    Wed, 25 Mar 2020, 7:36 PM
    Hi,
    Thank you for the great plugin and the help on the form.

    I am trying to auto enrol students and teachers.
    Our students emails have been formated based on the year they joined the school as in: ab1220@mydomain.com (the 20 is indicating they joined the school in 2020).
    The teachers have their firstname.lastname@mydomain.com

    So I am trying to auto enrol students on their respective courses. Can I auto enrol all 2020 cohort students on a course by entering *20@mydomain.com?
    And modules aimed at teachers, can I enrol them by entering *.*@mydomain.com?

    Thanks in advance for the help.
  • Roberto
    Tue, 31 Mar 2020, 5:34 PM
    Hi Safeen,
    autoenrol filter do not use star as special char.
    You can enter 20@mydomain.com for students but you can't use a valid filter to match only teachers.
    I think you can enrol teachers with an other enrolment plugin or using user upload. It depends on what is your procedure to create courses.

    HTH,
    Roberto
  • Luis Cattel
    Sat, 4 Apr 2020, 12:20 AM
    It works like a charm!
    I struggled with the User Filtering because I didn't found easily the short name for self registered authentication method, so I think it´s usefull to say that it is: "email". I´m using it to autonerol new self auto-registered users in a wellcome course so they don´t start with a blank list.
  • David Gómez
    Sat, 4 Apr 2020, 8:24 AM
    Hi guys! First of all, thank you very much for your work. Really useful, you're very kind sharing it with the community. I wanted to ask you if there's a way to set the unenrollment date for the users that are auto-enrolled with your plugin, like it's possible with the "default" enrolment methods. In case not, are you planning to include this feature? I think could be of great use for many Moodle Admins. Cheers!
  • Roberto
    Mon, 6 Apr 2020, 4:47 PM
    Hi David,
    no, at this time.
    The self enrolment plugin define an enrolment duration and I think that we can add it to autoenrol in the next release.


  • Pete Jones
    Thu, 28 May 2020, 6:56 AM
    Thanks for this wonderful plugin, Mark and Roberto.

    It does exactly what I want it to: automatically enrol users on to a course when they log in for the first time.
Please login to post comments