General plugins (Local): Profile field based cohort membership

local_profilecohort
Maintained by Picture of Ulm University Ulm University, Picture of Alexander Bias Alexander Bias
Moodle plugin which lets admins manage cohort memberships based on users' custom profile fields
52 sites
108 downloads
9 fans

Moodle core provides a mechanim to manually fill cohorts with users (on Site administration -> Users -> Accounts -> Cohorts). This is fine for small Moodle installations where the cohort members don't change too often and where the Moodle admin has plenty of time to update the cohorts.

Now, larger or fragmented Moodle installations may have the need to manage a large number of cohorts which have a large amount of members and which may also change quite often. Managing cohorts by hand in such scenarios is simply unprofessional overkill - even / particularly if you distribute the work among multiple Moodle admins.

On the other hand these large or fragmented Moodle installations might already have some custom user profile fields which can be leveraged to decide which cohort(s) a user should be a member of. This plugin implements a simple solution to manage cohort memberships based on a users' custom profile field.

Please see README file for details about the usage and features of this plugin.

No support in the comments section on this page

Please note that we don't provide any support for this plugin in the comments section on this page anymore.

We appreciate your commendation and reviews for this plugin in the comments. For bug reports and support requests, please read the extensive information in the plugin's README file first and create, if needed, a ticket in the bug tracker which is linked below.

Thanks for your cooperation.

Screenshots

Screenshot #0

Contributors

Picture of Ulm University
Ulm University (Lead maintainer)
Picture of Alexander Bias
Alexander Bias: Developer
Davo
Davo Smith: Initial developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Mon, 8 May 2017, 5:40 PM
    Approval issue created: CONTRIB-6889
  • Picture of María Inserver
    Fri, 27 Oct 2017, 9:54 PM
    Hello,

    Thank you very much for sharing this plugin, it’s great. It would be nice to have it compatible with 3.3 and that combinations of rules could be made.

  • Davo
    Fri, 27 Oct 2017, 10:44 PM
    I'm not aware of any incompatibilities between Moodle 3.3 and this plugin, but it has not been specifically tested with Moodle 3.3.

    I'm not quite sure what you mean by 'combinations of rules'. You can already specify that several rules need to match for a cohort to be allocated by ticking the box 'The next rule must also match, to join this cohort'. If you have several different rules that all allocate the same cohort, then just create each of the rules and they will all allocate the same cohort, if matched.
  • Picture of Francis Vendrell
    Thu, 16 Nov 2017, 9:40 PM
    Thank you for this nice plugin. It seems to work with moodle 3.3.1
    It is an alternative to the Autoenrol cohort plugin, see https://moodle.org/plugins/pluginversions.php?plugin=auth_mcae, which is compatible up to Moodle 3.0
    For the present plugin, contrary to the mcae plugin, cohorts have to be created manually but this give more control. Furthermore, cohorts are updated with the cron job, and not only when the user logs in, which is obviously a nice feature.
    smile
  • Picture of Gerhard Schwed
    Sun, 26 Nov 2017, 12:13 AM
    Thanks for this plugin. It works fine.
    But why is it restricted to only custom profile fields. Many information is often stored in one of the default profile fields like country, institution, department. It would be great if I can use also these fields.
  • Picture of Alexander Bias
    Mon, 27 Nov 2017, 3:56 AM
    Hi Gerhard,

    there is a simple answer to your question: When we wrote this plugin, we only had the need to process custom profile fields. And as custom profile fields and core profile fields have to be handled differently in code, the work for core profile fields was never done. Additionally, I hope that some day in the future, all core profile fields except firstname, lastname and email will be move to custom profile fields (MDL-28452 would solve the most urgent part for that).

    We don't have plans to extend this plugin to core profile fields, but would be willing to review a pull request if someone else would do it in a clean way. That's all I can offer at the moment.

    Thanks,
    Alex
Please login to post comments