Auto-cohort plugin

Local plugins ::: local_cohortauto
Maintained by David Thompson, Catalyst IT
Automatically adds users into auto-created cohorts, with names that derived from users' profile fields.
Latest release:
412 sites
154 downloads
31 fans
Current versions available: 1
This local plugin automatically adds users into cohorts, with names that derived from the users' profile fields.

Auto-created cohorts are made in the top-level system context (CONTEXT_SYSTEM).

This plugin is derived from, and intended to deprecate, the earlier auth_mcae plugin by Andrew Kama.

Screenshots

Screenshot #0
Screenshot #1

Contributors

David Thompson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • François Lizotte
    terça, 7 dez. 2021, 3:48 AM
    Hi,
    Is it possible to get the email domain if the email is in a custom field named status? I know you can do it with email field using {{email.domain}} template, but I wish I could do the same with {{status.domain}}.
  • Dan Marsden
    terça, 7 dez. 2021, 4:58 AM

    @François - no that's not supported sorry.
  • Al
    segunda, 27 jun. 2022, 5:04 AM
    Would you be kind enough to update the supported version number to moodle 4? It means that each time we update moodle the cohortauto plugin will install automatically. Currently, it has to be done manually as it's down as a moodle 3 plugin. Thank you.
  • Dan Marsden
    segunda, 27 jun. 2022, 5:16 AM
    @Al - Catalyst develops and supports a large number of plugins, and unfortunately for you, we don't use the moodle.org plugins db for deployment processes - we use git here at Catalyst - this means that the latest versions of all our plugins will always be in the github repo. We are slowly rolling out auto-deployment github actions to allow for more regular updates to the plugins db, but in the mean time you will just need to install it manually sorry!
  • Al
    segunda, 8 ago. 2022, 4:41 AM
    Thank you. You have it as moodle supporting 3.11 but not 4. It just needs the version support drop-downbox changing but I do understand. We, like many others, update moodle each week, and we have many plugins and it's very time-consuming. Those that are logged as 4.0 install automatically when you updated, hopefully, GIT-Hub will do the same. I do thank you for your reply and consideration though. Great Plugin!
  • Al
    terça, 25 out. 2022, 7:29 PM
    Since upgrading to moodle 4, we are experiencing extreme server loads from Cohort_Auto. Is there a way we can make an adjustment to reduce server the server load?
  • Al
    terça, 25 out. 2022, 7:34 PM
    It is set to 15 minutes but takes 12 minutes to complete so the server is not recovering, we have changed it to 30 minutes but wondered if we can make any other changes. For example, is changing it to 60 minutes ok? Can we do anything to reduce the server load on the 12 mins run?
  • Minh Hanh NGUYEN
    quarta, 12 abr. 2023, 7:54 PM
    Hi,
    We have Moodle 4.1.2 version. And there are a bug now.
    In mainrule_fld, we have 3 values, one value per line. For ex A, B, C as profile field.
    In Moodle 3.11, 1 user can be added in 1 to 3 cohorts, depends on how many fields are filled.
    Since Moodle 4.1, user is added on only 1 cohort, which name is the combine of A+B+C values.
  • Dan Marsden
    quinta, 13 abr. 2023, 6:26 AM
    @Minh - we have this running on a 4.1 site and haven't noticed the issues you are describing - you might need to do some further investigation yourself or reach out to a Moodle Partner to help you with this further - good luck!
  • François Lizotte
    quinta, 15 jun. 2023, 8:57 PM
    @Dan, which version of PHP are you running with Moodle 4.1?
  • Dan Marsden
    sexta, 16 jun. 2023, 6:28 AM
    François - feel free to report any issues you find to the github issues tracker, alternatively pull requests and or funding for improvements are welcome.
  • B G
    domingo, 18 fev. 2024, 11:17 AM
    Great idea for a plugin, sadly, the documentation is poor and vague. I cannot find a list of the cohorts like shown in the screenshots on this page. The examples are not useful. How am I supposed to provide a clear name for the cohort then apply a condition/rule to populate the cohort? Like all users that contains value 'x' in the custom field y? Is the custom field value the label or the shortname?
  • Francesca Vaccarino
    terça, 23 abr. 2024, 8:41 PM
    Hello, from the description I see that the latest supported version is 3.11 but from the comments it seems like it is supported at least up to 4.1. Could you please confirm? Does the plugin support version 4.3 too? Thanks
  • Dan Marsden
    quarta, 24 abr. 2024, 6:52 AM
    @Francesca - I haven't tested this plugin in 4.3 myself but feel free to do that yourself and report any issues you find to our github issues tracker - thanks.
  • Nithish Siva
    segunda, 24 jun. 2024, 6:00 PM
    Hello, @Dan,

    I'm starting to use the plugin and I'd like to split a custom field by ",". However, every attempt I've made hasn't worked. Here's the value I used to split, in the "mainrule_fld" field: %split(profile.Contextes|,)
    This value only creates one cohort named: %split(profile.Contextes|,).

    And here's the value I used to get the value stored in the custom field: {{ profile.Contextes }}
    This value correctly creates one cohort but without the split.

    Do you know why the split doesn't work?
1 2 3
Please login to post comments