General plugins (Local): Auto Group

local_autogroup
Maintained by Picture of Mark WardMark Ward, Picture of Emma RichardsonEmma Richardson, Picture of Arnaud Trouvé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.
374 sites
206 downloads
40 fans

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

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

Comments RSS

Show comments
  • Picture of Emma Richardson
    Fri, Apr 5, 2019, 9:38 PM
    Have you added it to the course? And set it up there?
  • Picture of Rachel Grzymkowski
    Fri, Apr 5, 2019, 10:53 PM
    Wow. That was a huge miss. Thank you for your quick reply. Is there any setting at this time that will allow a user to only be apart of 1 group even thought they may have profile fields to be apart of two. To ask a different way, is there a feature that will set 1 profile feature higher than another and put the person in the higher group.
  • Picture of Geoffrey Brewster
    Wed, Jun 12, 2019, 11:30 PM
    Hello,

    Thank you for contributing this plugin; it has proven useful for some of our clients in both Moodle and Totara. One thing we noticed is that when an auto group is edited, the Group by field always defaults to the custom profile field that was created first. The expected behavior is that the Group by setting would default to the profile field that is being used by that group. IF the user is not paying much attention, they could actually change the profile field without realizing. Let me know if you need any additional clarification.

    Again, thank you for maintaining this plugin.

    Geoff Brewster
  • Picture of Emma Richardson
    Thu, Jun 13, 2019, 2:45 AM
    Please add it as an issue to the github...
  • Picture of Baljé Weber
    Wed, Jul 3, 2019, 11:22 PM
    Can anyone point me to the explanation n how to add the plugin to an existing course?
  • Picture of Emma Richardson
    Thu, Jul 4, 2019, 1:01 AM
    Once the plugin is added and activated at the site level, you will see a setting for autogroup in the course settings under users/groups
  • Picture of Baljé Weber
    Thu, Jul 4, 2019, 2:37 PM
    Hi Emma, thank you. We are using Totara but need this feature. The totara menu is not showing the plugin. What would be te url the link would point to?
  • Picture of Emma Richardson
    Thu, Jul 4, 2019, 7:47 PM
    https://"yoursite"/local/autogroup/manage.php?courseid=“yourcourseid"
  • Picture of Denis Saez
    Tue, Jul 23, 2019, 4:30 PM
    Hello and thanks in advance for this nice plugin.

    I have a question:

    Can I config Auto Group to create one group per user enrollment? (group limited to one user only)

    Thanks!
  • Picture of Kathryn Woodhead
    Wed, Jul 24, 2019, 4:35 PM
    Hello, I haven't tried the plugin yet but I have a question - when it seperates the users into groups based on the field, what name(s) does it use? Can it be set up to label the group after the field? For example, if the institution field was London School, could it be set up so that London School is also automatically the group name?
  • Picture of Denis Saez
    Wed, Jul 24, 2019, 5:19 PM
    @Kathryn Woodhead Hi!

    Yes you are right. If you set "Group by: Department" it uses Department name for naming groups.
  • Picture of Ian Fourie
    Thu, Nov 14, 2019, 3:08 PM
    Hi Team,

    First of all, great plugin, your work on this has been much appreciated.

    I have a unique situation which I hope you would be able to help with:

    Students belong to multiple groups outside of Moodle in a 3rd party database. These groups are structured externally and have an existing structure. So when a user authenticates and enrolls into a Moodle course, we would like the group creation and sorting to be automated.

    Is it possible to have comma separated values (group names) in a single profile field to automate groups? (If not we’re open to suggestions)

    Eg: Lets use Stuart (a student):

    He belongs to a School called “School A”. We have a custom profile field linking all schools with unique IDs. However every school has sub groups, for example:

    Stuart belongs to Sub Groups within School A: Year 1, Class A, Class B and Class C

    So can there be another custom profile field called “Sub Groups” where all groups can be placed separated by commas? Structured like this:

    School -> “School A”
    Sub Groups -> “Year 1, Class A, Class B, Class C”

    Ideally this should create 5 groups:
    School A (As top group), then subgroups: School A Year 1, School A Class A, School A Class B, School A Class C

    The order of the subgroups should also not matter. So if the position of a subgroup for Stuart is the 2nd place in the comma separated list, this should link to another user (Molly) who has the same unique subgroup in let’s say the 4th place in the commas separated list. For clarity:

    Stuart: Year 1, Group A, Group B, Group C
    Molly: Year 1, Group C, Group X, Group Z

    Stuart and Molly will be grouped together in subgroup Year 1 and Group C.

    There are 3 mechanisms at play here:

    1) Top Groups are linked to subgroups
    2) Subgroups are all added in one profile field separated by commas
    3) The order of the subgroups should not matter

    I hope the above provides clarity. I would appreciate if you could let me know how this would be possible with your plugin?

    The challenge is that the 3rd party database is highly complex in its structure with 1000s of groups which need to be created automatically as a user enrolls into a course.

    I’m also open to other suggestions to make these 3 mechanisms work.

    Thanks so much in advance.

    Ian


  • Picture of Chris Swinney
    Sun, Dec 29, 2019, 9:37 PM
    Hi,

    I have the same request as Denis Saez back on Tue, 23 Jul 2019. I'm looking for a way to create a single group automatically for each user enrolment (where each group contains just one member and could have a naming convention like "{firstname} {last name} (creation_date}". or somesuch). There have been a number of discussions around this subject over the years, but as yet I haven't seen a simple way to achieve this.

    There is an activity plugin called "Grouping" and although this allow the teacher to create groups in this way, it's not automatic at the time of enrolment.
  • Picture of Steve Radford
    Tue, Apr 14, 2020, 11:12 PM
    Does anyone know whether this plugin would work in Moodle V3.8? We're currently running in V3.6 and we're planning to upgrade to 3.8 later this week. Unsure if I should uninstall this plugin first to be sure it won't cause any issues.
  • Picture of Emma Richardson
    Wed, Apr 15, 2020, 1:27 AM
    I am using it in 3.8 and have not seen any issues so far.
1 2 3 4
Please login to post comments