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:
5181 sites
2k downloads
184 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

Afichar los comentaris
  • Roberto
    Thu 9 May 2024, 14:32
    Hello Marie,
    that's the problem.
    The new AutoEnrol filtering system is very flexible and you can add new user filter with Availability plugins.
    I'm sorry but you need something that couldn't be done with Role availability plugin.
    You need an availabilty plugin that checks the role in a specific context or course, not the current context role.
    Something like https://moodle.org/plugins/availability_otherenrolled but also with role check.
    It could be necessary develop a new availability plugin.

    Cheers,
    Roberto
  • R.C. Ambrosio
    Thu 23 May 2024, 21:14
    when I try to install the plugin on Moodle that I maintain (4.4) the HostGator provider says that version 8.0 of mysql is required but HostGatos only offers version 5.7-23-23 and Moodle simply hangs, it doesn't move and I have to reinstall Moodle. Do you have any idea how to get out of the window?
    I had the same problem with 4.2.7 and 4.0 versions of Moodle. How can we know in advance if the instlation of plugin will destroy your Moodle instalation?
  • Roberto
    Tue 28 May 2024, 15:48
    Hello R.C. Ambrosio,
    AutoEnrol does not have specific database requirements. It use Moodle standard database table.

    Moodle from 4.2 requires MySQL 8.0 (https://moodledev.io/general/releases/4.2)
    Last Moodle version that requires MySQL 5.7 is Moodle 4.1 LTS (https://moodledev.io/general/releases/4.1)

    HTH,
    Roberto
  • Csaba Vágvölgyi
    Thu 30 May 2024, 19:20
    Does anyone use this plugin with Guest access? It seems that if the course has Guest enrollment enabled, then AutoEnrol does not enroll logged in users in the course either.
  • Roberto
    Thu 30 May 2024, 19:36
    Hello,
    as said in a couple of issues on GitHub (https://github.com/bobopinna/moodle-enrol_autoenrol/issues/42) Moodle guest enrolment management has priority on all others enrolment plugins.
    This is defined in Moodle core so needs to be changed there before plugins like AutoEnrol could work with guest enrol enabled.

    HTH,
    Roberto
  • Csaba Vágvölgyi
    Fri 31 May 2024, 14:16
    Thank you Roberto!
    In this case, using Self enrollment will be the solution. Regardless, Auto enrollment is a very useful plugin that makes managing certain courses more convenient in many cases!
  • Rudraksh Batra
    Sun 23 Jun 2024, 01:38
    Hi, I set the setting for enrollment to logging into the site, instead of entering the course. However what is happening, if i share i direct course activity video link for people to view, user get access to the course. But in "last access to course" in participants list, it shows "Never". it wont show last access course time... any specific reason . However if i set it to entering the course, it show time. Hope this wont affect any reporting or other things related to activity view and completion
  • Pavlo Molochko
    Tue 9 Jul 2024, 22:18
    Could you please comment on the issue described by @Moien Abadi? After upgrading Moodle to version 4.4.1+, I am experiencing the same issue.
  • Pavlo Molochko
    Thu 11 Jul 2024, 16:52
    I resolved the problem. It is necessary to turn off 'Enable communication providers' (set to 'No') in the Experimental settings.
  • Davor Budimir
    Tue 16 Jul 2024, 19:56
    Hi everyone. Does anyone know how to enrol only newly registered students to a specific course using this plugin? Let's say only students registered from today onwards, but not already registered students
  • Marcel K
    Tue 27 Aug 2024, 20:10
    can confirm this error:
    Hi
    I installed moodle 4.4+ and the last update of the auto-enrol plugin (2.4)
    when I try to delete a user (user A) face to such error:

    Exception - Call to a member function get_room_user_provider() on null
    More information about this error
    Debug info:
    Error code: generalexceptionmessage×Dismiss this notification
    Stack trace:
    line 151 of /communication/classes/api.php: Error thrown
    line 440 of /communication/classes/hook_listener.php: call to core_communication\api->get_room_user_provider()
    line ? of unknownfile: call to core_communication\hook_listener::delete_user_room_memberships()
    line 299 of /lib/classes/hook/manager.php: call to call_user_func()
    line 3596 of /lib/moodlelib.php: call to core\hook\manager->dispatch()
    line 94 of /admin/user.php: call to delete_user()
  • Roberto
    Thu 29 Aug 2024, 16:25
    Hi Marcel,
    I don't think this exception is related to AutoEnrol.
    I tested with only manual enrolled users , with Autoenrol plugin disabled and also not installed.

    It seems to be related to communication providers experimental feature.
    If enabled when a user is deleted that exception is throw.

    HTH,
    Roberto
  • Roberto
    Thu 29 Aug 2024, 16:38
    HI Davor,
    I think you need an availability plugin that check against first login date to do it.
    I don't know if someone already developed it.

    HTH,
    Roberto
  • Marcel K
    Wed 4 Sep 2024, 14:14
    @Roberto: You are right. Disabled External Communication Provider in experimental settings. All is working fine again. Thank You.
  • Alberto alberto
    Wed 11 Sep 2024, 16:57
    Hi Roberto, Hi Mark
    The plugin is great but it lacks a very important feature for me: instead of just unsubscribing, it would be useful to be able to choose between unsubscribing or suspending the subscription.
    In this way, the user's progress would still be visible: since it is a complete unsubscription, at the moment this is not the case.
    Thanks in advance
Please login to post comments