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 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
you need to enable the autoenrol plugin in the administration page:
https://docs.moodle.org/37/en/Enrolment_plugins
Cheers,
Roberto
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
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
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
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.
I fixed it.
You can get it on github.
Thanks,
Roberto
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
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.
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
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.
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.
It does exactly what I want it to: automatically enrol users on to a course when they log in for the first time.