Auto Group

General plugins (Local) ::: local_autogroup
Maintained by Mark Ward, Emma Richardson, Arnaud Trouvé
A local plugin which automatically assigns enrolled users on a course into groups dependant upon information within their user profile. (Now with custom profile field support - called User Info Field in settings.) This plugin will create, update, and delete groups automatically to match the users on your course. All behaviour is event-driven and so will occur within page loads. The system can also monitor manual group setting changes and moderate them to ensure that groups are kept neat and tidy.
Latest release:
757 sites
300 downloads
52 fans
Moodle 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9

A local plugin which automatically assigns enrolled users on a course into groups

dependant upon information within their user profile.

 

This plugin will create, update, and delete groups automatically

to match the users on your course. All behaviour is event-driven

and so will occur within page loads.

 

The system can also monitor manual group setting changes and

moderate them to ensure that groups are kept neat and tidy.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Mark Ward (Lead maintainer)
Emma Richardson: Maintainer
Arnaud Trouvé: Contributor
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Fri, Dec 18, 2020, 8:41 PM
    Maybe create an issue in github and we can discuss there - I have my site on 3.8.3 - going to check on that...
  • Wed, Jan 27, 2021, 11:49 PM
    Have been using the plugin for a while on Moodle 3.9 and it works well organizing our students into groups.

    However, all of our teachers teach more than one group and I can´t see a way to have them belong to multiple groups based on the content of a single profile field. Even if I manually add the teachers to several groups after reload they are later removed from those groups by the plugin. Is there any way around this?
  • Wed, Jan 27, 2021, 11:53 PM
    I do not use the plugins to assign my teachers. I just do that manually. Just uncheck the teacher role from the plugin.
  • Wed, Apr 21, 2021, 5:47 PM
    Firstly, thanks for this plugin which is really useful and excellent - but I am noticing a slight annoying issue, in that it doesn't appear to always trigger. I have paypal set up as an enrolment method on courses, and for some reason sometimes the autogroups will trigger, but sometimes it doesn't when a user is enrolled via Paypal (the other enrolment methods seem to be working OK all of the time). I have the settings for the plugin set so all 4 triggers at the bottom of the admin page are ticked. We are getting scenarios, where a user is enrolled on the course as a student, the autogroup is set up to action students - but it doesn't. If I go into that users profile and save changes but without changing anything, the autogroup is then triggered at that point.

    Has anyone else seen a similar behaviour - and if yes, is there a solution.
  • Fri, May 14, 2021, 3:34 AM
    It is very possible that it is not being activated by the paypal enrollment method. If you have a fix for it, please feel free to submit a pull request on github.
  • Fri, May 14, 2021, 2:14 PM
    Thanks Emma for replying to my question. My host company has identified the problem. Even though I have set a custom profile field to default to a certain value, it apparently doesn't actually write that value into the relevant table containing the user data, which means that the autogroup plugin doesn't pick it up. If I ook at the users profile it does display that default value, even though it hasn't been applied to them yet. If I edit the users profile and save without actually changing anything, that then does write the value into the table, and the autogroup kicks in as it should. This appears to be a core moodle bug not a bug with the plugin, and has been reported accordingly, but I guess there may be merit in adding that warning to plugin page, so others aren't caught out the same way?

    The other information that I deduced was that it isn't to do with the Paypal plugin, it is for accounts that are created by self-enrolment on the site.
  • Fri, May 14, 2021, 7:28 PM
    Interesting - I can see why that is happening. That you maybe do not want self registration accounts writing to the database until they are confirmed so that the database is not filled up with spam etc...i.e. it might not be a bug but intentional behavior...
  • Fri, May 14, 2021, 7:56 PM
    @Emma - the data not being added to the table, still continues even after the person has confirmed. I could understand it not writing to table straight away as you say, but on confirmation I think it ought to write to the table at that point.
  • Fri, May 14, 2021, 7:59 PM
    Oh, ok, then - that does sound like a bug. I wonder if you could work around it by not providing a default value but making them enter something in there (not sure what kind of data but maybe you could do a dropdown so that the data was consistent). Maybe if something is actually selected, it would save correctly.
  • Wed, Jul 14, 2021, 3:07 PM
    I'm using moodle 3.11 and no groups are being created or pruned. I have Self enrolment with the Auto enrolment plugin set for login.

    In my course I have Group mode on > Separate Groups. Force group mode > Yes. Default grouping > None

    Am I missing something?
  • Wed, Jul 14, 2021, 7:13 PM
    Have you set up the plugin? None of the settings you have mentioned are for the plugin - you have to set up the plugin under Course Settings/Users/Autogroup
  • Thu, Jul 15, 2021, 6:57 AM
    Thanks Emma - that was the one thing I missed. Working now
  • Thu, Jul 22, 2021, 3:43 PM
    Moodle 3.3.9 (Build: 20181112) as part of Totara,

    I guess this is a common request but i haven't been able to find it. Would it be possible to create groups based on registerd Seminar (Face-2-Face plugin) sessions?

    Where should i start if i would like to build a custom set of rules?

    Thanks for any info.
  • Thu, Nov 4, 2021, 1:54 PM
    This plugin works exactly how I thought/hoped it would, and has the potential to dramatically reduce our admin workload. Really impressed by, and grateful for, what you've put together here.
  • Thu, Nov 4, 2021, 7:21 PM
    Thank you - I am glad that you find it useful. It has definitely saved me a huge amount of time.
1 2 3 4 5 6
Please login to post comments