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:
766 sites
341 downloads
56 fans
Current versions available: 5

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
  • 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.
  • Tue, Dec 7, 2021, 9:29 PM
    It depends on how you set the settings. If you check the box to listen for profile changes, it will add/remove the group depending on what is happening in the profile.
  • Tue, Dec 14, 2021, 8:18 PM
    Hi Emma

    We're seeing a case where changing the user profile isn't updating the group on the course. It worked once, going from no group to a named group, but won't work again when we update the profile field further. The profile listener is enabled.

    Anything you can suggest to look for in troubleshooting would be very useful.

    Can you also advise if the plugin will ever be updated to support MWP?
  • Tue, Dec 14, 2021, 8:42 PM
    Please report any issues on github. I actually have no idea what MWP is - can you elaborate?
  • Wed, Jan 5, 2022, 8:16 PM
    I am blocked from accessing GitHub by the college firewall.

    When I try to create an auto group using the Custom Profile Field then on the next page the 'group by' drop down list is empty.

    Also is there a way to alter the columns used if Profile Field is chosen?

  • Wed, Jan 5, 2022, 8:40 PM
    Do you have custom profile fields created? It would take a code change to add more fields...
  • Wed, Jan 5, 2022, 9:42 PM
    Thank you Emma,

    How do I create custom profile fields?
  • Wed, Jan 5, 2022, 10:48 PM
    we have many students who need to be on several moodle courses. Indeed some college courses are mapped to several moodle courses and vice versa. This is done via the External Database enrolment plugin.

    since the custom profile fields are related to the user not the course this is of limited use.

    I did create (on the staging site) a new profile field "mainCourseGroup" (not all students have a 'main course' but it might have been useful for some).

    I tried to upload users with this field added but Moodle , not surprisingly, rejects it: 'mainCourseGroup is not a valid field name'.

    I don't see a use for this for us at the moment.

    What I (and I suspect many, many others) would really like is for course teaching groups to be integrated into the External Database enrolment plugin.

  • Wed, Jan 5, 2022, 10:58 PM
    At this point, the forums would probably be more help but if you are using the csv upload, there is a special way that you have to name the column for it to pull in. If you have the field created, you can upload data to it. We use this plugin with LDAP, whatever field we map from there works to automatically group them in their courses. It does work, I think you are just not mapping correctly
  • Wed, Jan 5, 2022, 11:08 PM
    We used to use automatic account creation (LDAP) and later SAML2 but this is still per student not per college enrolment.

    We can not use automatic account creation (and arguably should not have been using it) because student usernames are based on their actual name (with numbers added when more than one would be created in the same year). Not my idea and not under my control but it has led to pre-existing accounts being accessed by new students.

    I was forced to revert to the upload because of this and to added a script which checks for these collisions and optionally creates the file to upload.
  • Wed, Jan 5, 2022, 11:12 PM
    It doesn't matter how you get your students in, it will still work. Per the docs - when you are using csv upload, "To create a custom field "genre", you must write a shortname "genre" in the new field, and write "profile_field_genre" in the header of the .csv file." Is that how you formatted it?
  • Wed, Jan 5, 2022, 11:16 PM
    "To create a custom field "genre", you must write a shortname "genre" in the new field, and write "profile_field_genre" in the header of the .csv file." Is that how you formatted it?

    Yes. Nevermind.
1 2 3 4 5 6 7
Please login to post comments