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
    Tue, 13 Oct 2020, 11:17 PM
    Hello James,
    this problem is not managed from autoenrol plugin but by moodle core that setups user data before finish user enrolments.
    Today I worked hard to try to find a workaround to this problem and now I hope I found it.
    I've already posted on Github a commit that seems to solve the problem. Please test it and let me know.

    HTH,
    Roberto
  • Natalie .
    Fri, 4 Dec 2020, 7:26 PM
    Hi,
    is it possible to enter OR values in the "allow only" field?
    I'd like to set up this:
    Group by: email
    Allow only: @xy.de OR @yz.com
  • Roberto
    Fri, 4 Dec 2020, 11:04 PM
    Hi Natalie,
    you can't do it in that field.
    If you need to permit access with a OR logic you can setup more autoenrol instances with a single rule in each one.
    Implement more complex rules is in the roadmap but I don't know when it will be released.
  • Paul Beckwith
    Tue, 8 Dec 2020, 4:51 AM
    Tried using this in 3.9, it works on a single activity format however causes the activity to launch straight away. When changes to any other course format doesn't work.
  • Roberto
    Wed, 9 Dec 2020, 6:04 PM
    Hello Paul,
    can you explain what doesn't work? What's your expected behaviour?
  • Bruno Piu
    Thu, 21 Jan 2021, 11:29 PM
    Hello Mark and Roberto,
    I installed the plugin in a moodle version 3.9, defined a course and associated with the course the enrollment mode "Auto Enrol", then that of the plugin.
    In the plugin configuration, I defined in the "User Filtering" the "Group By" => "Department" and the "Allow Only" field => "3".
    In the moodle there is a user where the Department field is = "3", but unfortunately when I do the login with that user, the course is not displayed. Did I forget to configure anything?
    Thanks!
  • Roberto
    Fri, 22 Jan 2021, 6:01 PM
    Hello Bruno,
    if you set the autoenrol on login, the course is not shown at the first login in user Dashboard.
    This happens because moodle call autoenrol after the Dashboard setup.
    There is no way to change it so user will see new autoenrol course from the second login.

    HTH
  • Bruno Piu
    Fri, 22 Jan 2021, 8:31 PM
    Hello Roberto,
    thanks for the answer, but what you mean with "set the autoenrol on login", because I didn't done any explicitely action for that?
    Anyway, even after the second/third...logins, the user don't see the course because it doesn't become enrolled.
    Did you have any idea what I can check?
    Thanks!
  • Roberto
    Fri, 22 Jan 2021, 8:54 PM
    Hello Bruno,
    if you did not set autoenrol on login, autoenrol works on course access.
    You can set this and other advanced feature clicking on Expand All or Show more... links in autoenrol settings page.
  • Bruno Piu
    Fri, 22 Jan 2021, 9:49 PM
    Hello Roberto,
    in the autoenrol settings page, I've set the following fields:
    Role Student
    Enrol When Logging into Site
    Always Enrol Yes

    and then Filtering:

    Group By Department
    Allow Only TestDip
    Soft Match Yes
    Limit 0

    It's correctly configured?
  • Joanna Beaver
    Wed, 24 Feb 2021, 8:34 PM
    Hello, in the configuration of an autoenrol instance, is it possible to Allow only [role]?
  • Roberto
    Wed, 24 Feb 2021, 8:39 PM
    Hello Joanna,
    Autoenrol is an enrolment plugin, it set the role in a course for users that match the rule.

    If I understand what you ask this is not possible because users do not have a role in a course before the enrolment.

    HTH,
    Roberto
  • Joanna Beaver
    Wed, 24 Feb 2021, 8:58 PM
    Thanks Roberto, I was thinking of manager role at system level. We need the managers actually enrolled in the course as opposed to just being able to view without participation. On that note, I am trying instead to Allow by email, but even setting to a specific email address it is not enrolling the Manager. I have set Always enrol to Yes, in case that was required.
  • Roberto
    Thu, 25 Feb 2021, 12:17 AM
    I think that Manager role has capabilities that do not permit auto enrolment.
    Managers can enter into courses without enrolment so no enrolment procedure is called.
    Manual enrolment is the only way you can use to enrol them in a course.

    Sorry,
    Roberto
  • Paulo Paiva Paiva
    Sat, 27 Feb 2021, 12:04 AM
    Hi!
    Is it safe to use in 3.10?

    Thank you!
Please login to post comments