Profile field based cohort membership
Maintained by
Alexander Bias, Moodle an Hochschulen e.V.
Moodle plugin which lets admins manage cohort memberships based on users' custom profile fields
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
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
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.
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.
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.
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.