Automatic enrolment in groups

Administration tools ::: tool_groupautoenrol
Maintained by OamPascal Maury, Gemma Lesterhuis, Luuk VerhoevenLuuk Verhoeven
Plugin to auto enrol users in Moodle courses groups
Latest release:
290 sites
63 downloads
25 fans
Moodle 3.9, 3.10, 3.11, 4.0, 4.1, 4.2, 4.3, 4.4

Moodle-admin_tool_groupautoenrol

Version 4.5.0 (stable version) for Moodle 3.9.0 to 4.5

Plugin to randomly auto enrol students in Moodle courses groups when they are enrolled into the course (whatever the enrol methods : auto-enrol by key, cohorts sync or manual enrol)

June 4th 2025 ANNOUNCEMENT 

At LTNC B.V. we reply on funds from our customers that use the addon to continue the maintaince of our addons. Sadly we have to conclude that there is no longer a need for this addon within our clientbase. If you rely on this plugin you can do the following things:

  1. Find a new developer that will continue the maintenance; we are open for the plugin Adoption Programma. 
  2. Send an email to sales@ltnc.nl , and ask for our LTNC Addon Maintenance Program. 

Things to know :

  • The plugin uses \core\event\user_enrolment_created (user_enrolled) Moodle event
  • If a selected group is deleted, the plugin will ignore it.

In this stable version (4.5.0) :

  • GDPR implementation
  • you can choose to enable the plugin in each course
  • you can choose to auto-enrol students in all existing course or specific ones

Compatibility :

  • Tested with Moodle 3.9, Moodle 4.2, Moodle 4.3 and Moodle 4.4
  • Another version of the plugin exist and works with Moodle 2.5 and 2.7 (I did not test it with the others versions but should work with all 2.x). It's a local plugin because adding link into "Course administration" menu was not possible for admin tool before Moodle 3.0 You can get it here : https://github.com/pascal-my/moodle-local_groupautoenrol/tree/STABLE

Installation

  • Copy the directory 'groupautoenrol' into the moodledir/admin/tool directory.
  • Connect to moodle as an administrator and install the plugin.
  • Go to a course, create at least one group
  • Enable the plugin for the course with the new link "Course administration > Users > Auto-enrol in groups" Note : this link appears even if the plugin is not enabled for the course

Credits

From Moodle 3.9 onwards this plugin will be maintained by Gemma Lesterhuis, Lesterhuis Training & Consultancy - https://ltnc.nl/ Donations for continuous support are welcome. https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y5DQB9F8AJBKJ&source=url

Version history :

Screenshots

Screenshot #0
Screenshot #1

Contributors

Oam
Pascal Maury (Lead maintainer)
Gemma Lesterhuis: New maintainer
Luuk Verhoeven
Luuk Verhoeven: New Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Vis kommentarer
  • Oam
    ty., 12 apr. 2016, 00:30
    I fixed the problem ! smiler
  • Dinis Medeiros
    on., 13 apr. 2016, 05:45
    Thank YOU! smiler
  • Anthan Ren
    må., 23 mai 2016, 13:56
    Is there any possible to enrollment automatically from external database?
    Thanks.
  • Oam
    må., 23 mai 2016, 16:02
    Hello Anthan Ren,
    I never used external database, so I am not planning to work on enrollment automatically from external database for now, sorry. You can improve my code in this way smiler
  • Janice Johnson
    on., 15 feb. 2017, 07:14
    Hello - I have the plugin working on moodle 3.0x, and everything is working fine. I just don;t understand how the plugin assigns students to groups.

    I need students to be assigned to specific groups, and I have a table in an external database that contains the groups and students names. Can you tell me how this plugin assigns groups, so that I can augment for my use?
  • Oam
    on., 15 feb. 2017, 17:31
    My plugin does not match your need. See my answer here : https://moodle.org/mod/forum/discuss.php?d=259371
  • John Anderson
    ty., 3 juli 2018, 03:20
    Only random groups? Can I set it to just one? A specific group?
  • Oam
    ty., 3 juli 2018, 22:05
    Yes, you can choose only one group.
    Note : I have no idea if my plugin still works with Moodle > 3.0.
    You have to test it first !
  • Thomas Robb
    fr., 17 juli 2020, 15:54
    I would like new users to be automatically assigned to a group based on their country. Right now, I only see "Department, Institution, City & Preferred language. Would it be difficult to add "Country" to the list of profile fields? I'd be willing to pay a modest sum to have this implemented.
  • Gemma Lesterhuis
    fr., 21 aug. 2020, 15:26
    @thomas, if you want to use a profile field for group maybe this plugin is what you seek: https://moodle.org/plugins/local_autogroup
  • Gemma Lesterhuis
    fr., 21 aug. 2020, 15:32
    @pascal I have contracted a developer to update this plugin voor Moodle 3.9, we would like to publish this to Moodle.org, on this page. Could you please contact me on the best way to move forward?
  • Oam
    fr., 21 aug. 2020, 16:03
    Thank you Gemma for answering Thomas' question. Indeed, my plugin can not automatically assigtn users to a group based on their user profile information.
    No problem for updating this plugin, I have not time to update it anymore. I sent you a "contact request".
  • Gemma Lesterhuis
    fr., 21 aug. 2020, 18:16
    Just replied to the contact request. From what I understand you can add the successor to the plugin page with all the premissions. In my message I mentioned the names smiler If you could arrange that, that would be great. Thank you
  • Sergio Renato Aldana Alvarez
    ty., 26 apr. 2022, 04:14
    I want to auto assing to 3 groups, but not sorted,
1 2
Please login to post comments