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

  • Henrique Cavet
    Fri, 18 Feb 2022, 3:12 AM
    Hi Roberto. I don't know if I managed to make myself understood, as I reported above, I register my users in bulk on the platform, and I leave it set that they will be registered in the course as soon as they log in to the site. But this is not happening, they are being registered the day after my export to the site. I'm not sure if this is normal or not.
  • Roberto
    Fri, 25 Feb 2022, 7:53 PM
    Hi Henrique,
    it depend by how you configure autoenrol and your moodle site. Autoenrol, if configured with enrol at login, will enrol each confirmed user to the course when they successfully login to your site.
  • Gábor Zahemszky
    Wed, 2 Mar 2022, 2:20 AM
    Hello,
    We use AD-backed LDAP-authentication with Moodle, and use auto-enroll with profile field filtering on some of the courses. Unfortunately we can get some of the email addresses like gabor@example.hu (lowercase letters), and some of them as Gabor@Example.hu (mixed case) from the AD server.
    The problem is, most of the times we write the filtering rules using only lowercase letters. Is it possible to configure the auto-enroll user filtering to use case-insensitive comparison on the E-mail profile field? It seems, that the plugin uses case-sensitive comparison - but it shouldn't do it in that field. (By the way I think, its a bug, as its against the email address RFCs as they say, it's mandatory to use case insensitivity in email addresses.)
  • Roberto
    Wed, 2 Mar 2022, 4:47 PM
    Hello Gabor,
    I agree, but autoenrol use Moodle standard availability library to provide filtering so I can't manage this problem in autoenrol code.
    You can submit a bug issue on Moodle Tracker about user profile availability plugin.

    HTH,
    Roberto
  • Mark VH
    Wed, 2 Mar 2022, 8:39 PM
    Hello Mark, Roberto,
    Tried to use your plugin, but after installing, activating (with the eye-icon), and setting permissions I cannot add the instance to a course. Possible enrollment methods are only Manual enrolments, Guest access and Self enrolment (Student). I tried everything I can think off... any thoughts?
    Regards,
    Mark
  • Pável Montero Fitó
    Fri, 4 Mar 2022, 10:47 AM
    Hi Roberto, we have two courses with the Auto Enroll plugin activated, when student accesses course 1 they are enrolled in course 1 and course 2, how can we separate the enrollment only for course 1?

    big Hug
  • Roberto
    Fri, 4 Mar 2022, 4:38 PM
    Hello Mark,
    I can't immagine what happens. The only things you need to do are: install, enable plugin (with the eye-icon), go to course Enrol methods page, add in instance with the dropdown menu.
    Please check permissions if changed them.
    HTH,
    Roberto
  • Roberto
    Fri, 4 Mar 2022, 4:41 PM
    Hi Pável,
    I think that you need to check auto enrol plugin settings in both courses.
    Did you configured auto enrol on login?

    HTH,
    Roberto
  • Pável Montero Fitó
    Fri, 4 Mar 2022, 6:09 PM
    Hello, Course 1 student is enrolled when he logs in to Moodle, after logging in he sees Course 1 and Course 2, he should see only Course 1.

    Autoenrol v 2.3.1
    Moodle 3.11.5+
  • Aathithya A
    Mon, 7 Mar 2022, 3:35 PM
    Hi Roberto,
    Thank you for the useful plugin. It is working fine. Can you help me with scheduling autoenrol sync part.I have configured crontab in my server.Whenever I set a time to run a task,it changes to ASAP however if I click run row task runs successfully and auto enrol happening.
    I would like to know when this task is triggering and also why task next run time is changing to ASAP.Kindly help.
  • P H
    Mon, 7 Mar 2022, 9:12 PM
    Hello,
    Thank you for your plugin.
    I have a question. Where can I see the list of auto-enrolled students in a course?
    Thanks.
  • Roberto
    Mon, 7 Mar 2022, 9:58 PM
    Hello P H,
    I already answered to this question on February 11, 2022.
    You can find the list of enrolled user in a course under Participants.
    If you need, you can filter autoenrolled students using enrolment method filter.
    You can find all information about it in Moodle documentation:
    https://docs.moodle.org/311/en/Participants

    HTH,
    Roberto
  • Roberto
    Mon, 7 Mar 2022, 11:34 PM
    Hi Aathithya A,
    \enrol_autoenrol\task\sync_enrolments task is disabled by default.
    Autoenrol generally does not need this task because users could be enrolled on login or when they access to a course.
    This task could be useful on courses that need to enrol users also when they not access to Moodle (for example a
    It checks if all your moodle users need to be enrolled with each autoenrol instances.
    As you can understand it takes a lot of resource (time, CPU, database) to do all things, please if enable it, run one time a day by night.

    HTH,
    Roberto
  • Aathithya A
    Tue, 8 Mar 2022, 1:28 AM
    Hi Roberto,
    Thanks for your reply. I want to schedule a task for auto enroll instead of waiting for user to login, So that bulk user/group of user can be assign with a course on same enrolment date. I could run a task successfully by clicking run now, but when I set task timing , as soon as the time reaches it changes to ASAP. Appreciate your help!!
  • Roberto
    Tue, 8 Mar 2022, 3:33 PM
    Hi Aathithya A,
    task scheduling is managed by Moodle core.
    When a task or some tasks take to much time, Moodle reschedule them As Soon As Possible until each task is completed.
    Then the task timing is set back the right next time.
Please login to post comments