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.
Price option: Free

Supports Moodle 2.0-3.0 See all versions
Latest release: 10 years ago
Installations: 142
Downloads (last 90 days): 22

Frankenstyle name: auth_mcae
Authentication

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

@Nic - this plugin has been replaced by the local_cohortauto plugin which performs exactly the same task in a much cleaner way. It should never have been called "autoenrol" as it does nothing with the enrolments, but just populates cohorts based on user profile fields. There are 2 ways to enrol "cohorts" into a course - one is from the particpants page which just manually enrols anyone that is currently in the cohort at that specific time, but the the best way is to use the core "cohort sync" enrolment method which links the cohort to the course permanently - see: https://docs.moodle.org/en/Cohort_sync#Enrolling_a_cohort_in_a_course
Hiya,
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
@chris - the best place to ask this would be in the forums, I see you've already done that here: https://moodle.org/mod/forum/discuss.php?d=402303#p1623428 - hopefully someone will respond with ideas there. (I'm not aware of a way to do this.)
Hi There, This is an excellent Plugin and i am using it for a site with 4000+ users and several hundred cohorts. Is there any possible way to hide a cohort that has been auto generated. We allow teachers to enrol their entire school or classroom into a specific course - the students are automatically assigned to their classroom cohorts using this plugin. However we also have auto cohorts for every single student and every teacher. Is there a way to hide these larger cohorts so that a teacher cant accidentally enrol every single student into their course? We cant convert the cohorts to manual as we have new users enrolling all the time and they need to be automatically added to their respective cohorts. Any Suggestions welcome. We are using the updated version.
@stefano - the latest version of this plugin is here:
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
Hi,
I'm looking for a plugin like that but I'm using Moodle 3.5.3... any ideas?
Hi, does anyone know if there is a known issue with Autoenrol Cohort not firing the first time a user logs in, *if* the User Tours are activated? We're finding users have to log out after the tour and back in again for the Autoenrol Cohort process to happen - wondering if anyone else has seen this?
I have the exact same problem of A Guy. Is there a way to make it work using SAML2 ?
I set up my autoenroll cohort to enroll in users in a course that have a particular value in the profile "Department" field. I created two cohorts. For example, one "Sales" and one "Customer Service". I added them as enrollment methods to the desired courses. I created a manual user with a username/password and "Sales" as the department. I logge din as him and I am enrolled in the "Sales" courses. Good so far. Then I have a user that is created and logins in via SAML/SSO. His department is also "Sales". His profile gets created with "Sales" as the department. But for whatever reason when I log in as him he is not enrolled in the courses. So do you know where I am going wrong here? Is this plugin only for a particular type of account--manual accounts? Do I need to alter the code? The plugin settings? I don't see a way to do that. Thanks.
OK, it's enabled, but not working properly (as I believe should be proper operating...)
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?
That did it, thanks!
@Dan - this plugin is an authentication plugin - so you need to enable it under Admin > Plugins > Authentication > Manage authentication.
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.
OK, I need a hand here, I am running 3.5.2 Moodle, and got the latest plug 3.1...it's doesn't break anything, the forms work as expected and all that, then I go into the "plugins overview" and it shows the plugin as "disabled".
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.
@Ricardo - it should work ok, but I haven't tested it on anything other than 3.1 myself. Feel free to report any issues you have with it to the issues tracker. Thanks.
Hi,
Is it compatible with Moodle 3.4?
Ricardo