Auto assign cohort (deprecated for local_cohortauto)
Maintained by
Dan Marsden, Catalyst IT
This Authentication plugin automatically assigns users into cohorts based on information in their user profile fields.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
I have this plugin up and running and I am placing users into cohorts by domain. Now, I want to sync cohorts to a course so that when a new account is created and moved to a cohort, they are given access to the course.
For example, if I enrol the example.com cohort in my course, any users that use that domain for their email would be automatically enrolled. Am I able to do that with this plugin?
Cheers,
Nic
https://github.com/catalyst/moodle-local_cohortauto
we have refactored it into a local plugin so it is more efficient -
If you have a small number of known cohorts, you might find this plugin useful too:
https://moodle.org/plugins/local_profilecohort
I'm looking for a plugin like that but I'm using Moodle 3.5.3... any ideas?
I have three cohorts, Coach, Athlete and RSO.
I have three checkboxes as custom profile fields labels Coach, Athlete and RSO, Moodle checkboxes are 0 or 1 it appears.
My templates are:
Coach-{{ profile_field_Coach }}
Athlete-{{ profile_field_Athlete }}
RSO-{{ profile_field_RSO }}
My Replace Array is:
Coach-1|Coach
Athlete-1|Athlete
RSO-1|RSO
I have a 0 (zero) in as empty field replacement.
I have tried all three delimiters, though I develop on Mac, it should be just LF I believe.
Any tips on this?
I inherited this plugin from someone else that originally wrote it and would like to eventually change it to being an admin tool plugin as it now uses events and doesn't need to hook into the authentication code. thanks.
Is this plug incompatible with 3.5.x, or am I missing something, I see nowhere to "enable".
BTW, relatively new to Moodle, but not CMS or PHP Development, so any guidance would be helpful.
Is it compatible with Moodle 3.4?
Ricardo