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:
2840 sites
1k downloads
116 fans
Moodle 2.0, 2.1, 2.2, 2.3, 2.4, 2.5

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.

New advanced user filtering (available from 2.3)
A complete rewrite of Autoenrol filter that use moodle standard availability interface adds great flexibility in user filtering.
The moodle profile availability core plugin unfortunately does not include language and authentication method. 
If you need them, you can install additional availability plugins like Restriction by language and Restriction by authentication.

Warning for 2.3 and 2.3.1 users:
Release 2.3 add a new option to enable/disable new enrolments but not define "enabled" as default value for existing instances.
After upgrade all existing autoenrol instances do not permit new enrolments.
Please update to 2.3.2 in order to fix it. It enables new enrolments for all instances modified before 2.3 upgrade. 

Screenshots

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

Contributors

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

Comments RSS

Show comments
  • Roberto
    Tue, Jun 8, 2021, 3:43 AM
    Sorry Francesco,
    I fixed it and updated 2.3 release.
    Just replace the code in moodle/enrol/autoenrol
  • Tue, Jun 8, 2021, 2:29 PM
    Thanks it works perfectly compliments for the form
  • Wed, Jun 9, 2021, 6:54 AM
    Hello, I would like to know how I can use the plugin so that the visiting user makes the registration on the site and when he logs in, the course released for him appears, only for users who register through self-registration mode and not manually.

    Thank you so much
  • Roberto
    Thu, Jun 10, 2021, 3:37 PM
    Hello,
    you can only do it using release 2.2 (https://github.com/bobopinna/moodle-enrol_autoenrol/tree/v2.2).
    Release 2.3 introduced the new filtering interface that use Moodle standard availability UI.
    Unfortunately that do not include language and authentication fields in user profile fields list.
    Developing a new availability plugin is need to add them.

    HTH
  • Fri, Jun 11, 2021, 10:35 PM
    Hello, I am not managing to configure this plugin correctly, I have a course configured with the plugin, when a user creates an account in Moodle in their dahsboard the course appears, but it also appears in the dashboard of the other manually registered users, the idea is that appear only for users who register via email, and not for manually registered users any ideas?
  • Roberto
    Mon, Jun 14, 2021, 3:16 PM
    Hello,
    sorry for the silly questions:
    have you configured autoenrol with Group by field set to "Authentication" and Allow only field set to "email"?
    Did you check groups enrolments? Have your course two groups (manual and email)?
  • Mon, Jun 14, 2021, 9:42 PM
    Hello, I have reviewed those questions and I feel that I was missing something to do here, I went back to review and now if I think that it is working, I appreciate your contact, somehow you brought the light between so much confusion here. big hug from Brazil
  • Roberto
    Thu, Jun 17, 2021, 11:09 PM
    Warning for 2.3 and 2.3.1 users:
    Release 2.3 add a new option to enable/disable new enrolments but not define "enabled" as default value for existing instances.
    After upgrade all existing autoenrol instances do not permit new enrolments.
    Release 2.3.2 try to fix it. It enables new enrolments for all instances modified before 2.3 upgrade.
  • Roberto
    Thu, Jun 17, 2021, 11:54 PM
    For users with many modified instances after 2.3 upgrade.
    I committed on GitHub a CLI script to check and enable all instances with new enrolments disabled.
    https://github.com/bobopinna/moodle-enrol_autoenrol/blob/master/cli/enable_new_enrolments.php

    HTH
  • Fri, Jul 2, 2021, 4:20 AM
    Hello,
    Is there any way to implement auto enrol for new/future users only?
    We have a course called 'HR requirements' that needs to be completed by new joining users only.
    I have tried creating a custom user field called 'Hire date' but I am not able to set filtering like : hire_date > 1 july 2021

    Thanks
  • Fri, Jul 2, 2021, 4:45 AM
    Hi Himanshu Saini, have you configured autoenrol with Group by field set to "Authentication" and Allow only field set to "email"?
  • Fri, Jul 2, 2021, 2:01 PM
    Hello Pavel, How it will distinguish between existing and new users. Also we are using openID connect so none of the users have authentication set as email.
  • Mon, Jul 5, 2021, 2:56 PM
    Hello All,
    I ma trying to setup an lms and for me, new users would keep adding on randomly, so I need to make the enrollment duration dynamic. so everytime a new user is registered/enrolled he/she should get enrolment for next number of days. I could add dynamic enrolment using autoenrol but, after starting to use "autoenrolment", my other plugin i.e. "enrollment timer" has stopped working! is there any alternative that I can get these both to work without any PHP setting?
  • Roberto
    Mon, Jul 5, 2021, 6:22 PM
    Hello Himanshu,
    I'm sorry but at this time profile availability does not support date field, just string fields, so you can't add filter like: hire_date > 1 july 2021
    I submitted an issue in Moodle Tracker in order to ask it as a new feature: https://tracker.moodle.org/browse/MDL-72083.

  • Roberto
    Mon, Jul 5, 2021, 6:39 PM
    Hello Shreya,
    unfortunately Enrolment Timer block only works with Self Enrolment.
    You can try to ask to Enrolment Timer developers to add support to other enrolments method that set enrolment duration.
    They should check the user enrolment instance and use the duration set in that instance.

    HTH
1 2 3 4 5 6 7 8 9 10 11 12 13
Please login to post comments