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

  • Roberto
    Wed, 16 Nov 2022, 10:56 PM
    Hello Richard,
    the easy answer is no, AutoEnrol can't do it self.

    You can use AutoEnrol but you need to install an additional availability plugin to filter users in a cohort.
    Restriction by cohort (https://moodle.org/plugins/availability_cohort) could be the availability plugin that does it.
    I never test it so you need you try if all things work as you want.

    You need to install the availability plugin, enable it, go to the AutoEnrol admin page and add the new availability plugin to the list of selected plugins in Enabled availability plugins field.
    Now you can add AutoEnrol method in your course and a user filter rule based on Restriction by cohort.

    HTH,
    Roberto
  • Pete Myers
    Tue, 3 Jan 2023, 2:54 PM
    Hi, I'm so sorry to ask this, can't find instructions in the documentation. I've installed and enabled teh plugin. How do I actually "add" it to a "course"? Can't find how to do that anywhere.
  • Roberto
    Mon, 9 Jan 2023, 3:32 PM
    Hi Pete,
    you can add AutoEnrol Instances to your courses in the Enrolment methods page of each course. The single steps to do depends on Moodle version and theme plugin, generally you find a link or a menu item in course participant page.
    You can find the procedure in Moodle Docs (https://docs.moodle.org/401/en/Enrolment_methods#Managing_enrolment_methods).

    HTH,
    Roberto
  • Jeff Shrek
    Tue, 21 Feb 2023, 5:49 AM
    Hi
    It is unclear to me how I can assign this auto-enrol to one specific course. I installed the plugin and enabled it, but I do not know what to do now. Thanks
  • Jeff Shrek
    Tue, 21 Feb 2023, 6:10 AM
    I guess if I had of bothered reading the post literally right above mine, then I would have seen the answer ...
    For me I went to the specific Course I want to add this method too and then choose Participants tab then changed the dropdown from Enrolled Users to Enrolment Methods and was
  • Jeff Shrek
    Tue, 21 Feb 2023, 6:11 AM
    I might suggest you include the HOW TO instructions at the top in the plugin DESCRIPTION
  • Jeff Shrek
    Tue, 21 Feb 2023, 7:01 AM
    Ok so now when the user clicks on the course they will get auto-enrolled. But how do I auto enrol them upon new account creation/registration?
  • Roberto
    Tue, 21 Feb 2023, 4:46 PM
    Ji Jeff.
    you can set your course to Autoenrol users when they on login to your moodle site.
    When the user registration is completed the user is enrolled in your course.
    If the administrator create the user account you need to wait the first login or enable the autoenrol sync scheduled task please use this option only as the last resource because it could lower down your moodle site performances.

    HTH,
    Roberto.
  • Nick Varney
    Wed, 22 Feb 2023, 11:57 PM
    I'm interested in the user filtering options available.

    1. Can it filter against a list of expected students and allow/deny access based on that list?

    2. If not the above, can it filter on the prefix of a username? For instance our student usernames are based on their year of entry e.g. 20smithj (John Smith who joined us in 2020).
  • Roberto
    Thu, 23 Feb 2023, 4:03 PM
    Hello Nick,
    the AutoEnrol filter use Moodle availability plugins, the same you can use to limit access to activities so your answer is: yes, you can do.
    1. If you want, you can add one by one rules for all the usernames;
    2. more easely you can add a filter rule that check profile field username that start with "20" to match 20smithj and any other student that has joined in 2020).

    1bis. You can also add availability plugins that match your needs.
    I developed an availability plugin that get an excel file with the list of users that could be allowed or denied (https://github.com/bobopinna/moodle-availability_esse3enrols).

    HTH,
    Roberto

  • Nick Varney
    Thu, 23 Feb 2023, 10:29 PM
    Hi Roberto

    Thanks so much.

    The esse3enrols availability plugin looks interesting.

    1. When combined with 'AutoEnrol' can it auto-enrol users to every course that uses it as soon as they login to Moodle? Or do they need to click on each course to enrol?

    2. Could you provide an example of the Excel format? I have seen the instruction 'a custom Excel file with a column header that match with the Moodle admin selected field name.' but I'm not sure what that means.

    Thanks,
    Nick
  • Roberto
    Fri, 24 Feb 2023, 12:51 AM
    Hi Nick,
    you can set AutoEnrol to enrol users on login or when they click on each course, availability plugins are used to check if they can be enrolled .
    Please be aware if you set autoenrol on login in several courses and your site has a lot of logins each day. This could slowdown your site performances.

    If you use username as profile field in Esse3enrols and your user language is english, you can write something like this in your Excel file:
    username
    20woodr
    20rushh
    20soong
    20smithj

    The column header is the translation in the uploader user language of the field name.

    HTH,
    Roberto
  • Nick Varney
    Fri, 24 Feb 2023, 6:28 PM
    Many thanks Roberto, that's worked perfectly in testing. What a great set of plugins!
  • Aniket Khaire
    Mon, 3 Apr 2023, 5:31 PM
    Hi,

    I have 5 different Courses. and after completing all of them "Course Complete" should get a check.
    And it was working fine but since last few days its not working.

    Earlier it was set that students will get access to 3-4-5 only when they complete 1 and 2. Auto access to 3-4-5 was not allowed. But then recently that was changed and set to all courses will be given to student at once.

    Now the issue I am facing is, student have completed 1-2-3-4 yet there are no check box checked in front of their names in Course 5, being more specific, sometimes, some of them are checked and sometimes none of them. Check box are checked in each Courses (Lets say, a student enrolled for all, and have completed 1 to 4 and in each course report it is showing that they have completed this course and shows checked box but in 5th course it doesn't show check box checked.) Because of this no student is able to get a certificate. Can you help?
  • Steve Zielinski
    Wed, 5 Apr 2023, 7:22 AM
    Putting this problem and solution here for others ...


    The Auto Enrol plugin must be enabled after installation.

    Go to
    Site administration -> Plugins -> Plugins overview

    The plugins are grouped under various headings/types.

    Find the Enrolment methods heading.

    Next to that heading will be a gear icon.

    Click the gear icon.

    You will see a list of Available course enrolment plugins.

    The Auto Enrol row will be greyed out.

    Click the "eye" icon to Enable the plugin.

    Now, go to your Course.

    Click the gear icon dropdown. (In 3.9 it is above the "Turn editing on" button.

    Choose "More ..."

    Choose the "Users" tab.

    Click "Enrolment methods" (the heading in the left column).

    In the dropdown next to "Add" select Auto Enrol.




Please login to post comments