Moodle plugins directory: AutoEnrol | Moodle.org
AutoEnrol
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.
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)
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.
HTH,
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
Thanks
Chris B
1- installed Auto Enrol plugin https://moodle.org/plugins/enrol_autoenrol
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
Thanks
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.
HTH
Can grouping be done on the custom user profile field?
Stack trace:
line 138 of /enrol/autoenrol/edit.php: Error thrown
Thank's
I fixed it and updated 2.3 release.
Just replace the code in moodle/enrol/autoenrol
Thank you so much
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