Enrolment: AutoEnrol

enrol_autoenrol
Maintained by Picture of Mark WardMark Ward, BoboRoberto Pinna
Adds functionality to automatically enrol users onto a course, either as they log into your Moodle site or as they acess a course. This plugin is primarily intended for use on courses which you want all users to be able to access but can also be configured for more advanced purposes.
2018 sites
1k downloads
92 fans
Current versions available: 2

When added to a course this enrolment plugin can enrol users onto a course automatically, either as they log into your Moodle site or as they click on the course. It is intended for use on site-wide courses such as "Moodle Help" or "Learner Voice".

In addition the plugin has advanced functionality to support autmatically grouping and filtering users based upon their attributes. Depending on how your user accounts are set
up this may help you to give access to certain user groups.

Configuration of the plugin is managed by two permissions which allow administrators to easily control who has access to the plugin.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Picture of Mark Ward
Mark Ward (Lead maintainer)
Bobo
Roberto Pinna: Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Bobo
    Sat, Oct 5, 2019, 12:03 AM
    Hi Olivier,
    you need to enable the autoenrol plugin in the administration page:
    https://docs.moodle.org/37/en/Enrolment_plugins

    Cheers,
    Roberto
  • Picture of Mark Berthelemy
    Sat, Dec 28, 2019, 6:19 PM
    Hi there,
    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
  • Bobo
    Wed, Jan 8, 2020, 9:56 PM
    Hi 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
  • Picture of Mark Berthelemy
    Tue, Jan 21, 2020, 11:00 PM
    Hi there,

    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
  • Picture of Oleg Kovalenko
    Wed, Jan 22, 2020, 3:55 PM
    Hello.

    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.
  • Bobo
    Wed, Jan 22, 2020, 8:26 PM
    Hello Oleg,
    I fixed it.
    You can get it on github.

    Thanks,
    Roberto
  • Picture of Scott Burnett
    Thu, Feb 6, 2020, 4:26 AM
    Hello, I need help. Well, technically, a colleague needs help. She has created a field, in the field the person can have AB, AC, AD. Or they can have a combination of AB and AC, or AB and AD. When she separates these do they need a comma or semi-colon. Also, when she saves the auto-enrolment method, it does not save the field that it is supposed to pull from. Any thoughts?
  • Bobo
    Thu, Feb 6, 2020, 7:26 PM
    Hello Scott,
    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
  • Picture of Safeen Shun
    Wed, Mar 25, 2020, 7:36 PM
    Hi,
    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.
  • Bobo
    Tue, Mar 31, 2020, 5:34 PM
    Hi Safeen,
    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
  • Picture of Luis Cattel
    Sat, Apr 4, 2020, 12:20 AM
    It works like a charm!
    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.
  • Picture of David Gómez
    Sat, Apr 4, 2020, 8:24 AM
    Hi guys! First of all, thank you very much for your work. Really useful, you're very kind sharing it with the community. I wanted to ask you if there's a way to set the unenrollment date for the users that are auto-enrolled with your plugin, like it's possible with the "default" enrolment methods. In case not, are you planning to include this feature? I think could be of great use for many Moodle Admins. Cheers!
  • Bobo
    Mon, Apr 6, 2020, 4:47 PM
    Hi David,
    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.


  • Picture of Pete Jones
    Thu, May 28, 2020, 6:56 AM
    Thanks for this wonderful plugin, Mark and Roberto.

    It does exactly what I want it to: automatically enrol users on to a course when they log in for the first time.
  • Picture of Vinod Singh
    Fri, May 29, 2020, 8:25 AM
    Self enrolment has a configuration property "Unenrol inactive after" that unenrols users after specified days ot inactivity. Having a similar configuration here also will be helpful.
1 2 3 4 5 6 7 8 9
Please login to post comments