General plugins (Local): Smart Cohort

Maintained by CNW Co.CNW Zrt.
With Smart Cohort modul, users automatically added to cohorts based on filters.
42 sites
11 fans
Current versions available: 1

We developed the Smart Cohort module based on our years of experience in Moodle operation and development. Course creators, site administrators and teachers are surely familiar with cohorts in the system that allow new colleagues / students to be easily enrolled in the appropriate courses. The users only have to be added to the group and the rest is automatically arranged by the system.

The Smart Cohort Module allows authorized users to define filtering criteria and to specify which cohort the filtered users would be added to. This add-on works well with any authentication plugins, so when the user is created or its data gets updated, the system checks for which groups to add to or remove the user from based on the filtering criteria.

The module was originally developed for our partners, but we feel like that this community would also find it useful, so we've made it available to you for free. With the help of this module it's easier for our partners to identify courses based on area, job, position, and they do not have to deal with managing cohorts.


Screenshot #0
Screenshot #1
Screenshot #2


CNW Zrt. (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Fri, Feb 22, 2019, 10:00 PM
    Approval issue created: CONTRIB-7630
  • Picture of Jon Bolton
    Mon, Mar 18, 2019, 10:19 PM
    Well done folks! Love this plugin 😍
  • CNW Co.
    Mon, Mar 18, 2019, 10:48 PM
    Thanks, I glad you found it useful!
  • Picture of Jean-Roch Meurisse
    Tue, Apr 30, 2019, 3:40 PM
    Hi there!
    Very interesting plugin.
    Maybe it would be interesting to add other matching options in dropdows, such as "starts with" or "ends with". These would for example allow to enrol to cohort all people with a specified email pattern (f.ex all people with an email ending with
  • CNW Co.
    Mon, May 6, 2019, 5:03 PM
    Thank you for your comment.
    We made a new release 1.0.0 (2019050603) with these functions, you can try it and see how you like it.
    Please be so kind and report back to us after testing if you have the time.
    Have a nice day!
  • Picture of Roland Sherwood
    Tue, May 7, 2019, 3:25 PM
    Excellent plugin - many thanks! Version 2019050603 working fine for us here, and the starts/ends with functionality is perfect for our needs.
  • Picture of Jean-Roch Meurisse
    Tue, May 7, 2019, 9:29 PM
    That's exactly what I meant. You rock wink
    Thanks a lot
  • Picture of Jon Bolton
    Sun, May 19, 2019, 12:50 PM
    Would be great if matching options could include CONTAINS / DOES NOT CONTAIN / IS EMPTY / IS NOT EMPTY 🙏
  • Picture of Jeff White
    Wed, May 22, 2019, 9:56 PM
    Very nice plugin. Very clever how you made your scheduled tasks work. I made some stupid mistakes where i did not put the filter to match the value so I matched all 125k profiles to add to the cohort smile. Bad thing is I have to wait for the jobs to db timeout over and over before it then removes them after I delete the filter. Thank goodness it was a test environment. I can see this truly hosing a production environment if you had +100k users and you have cohort enrollment for 100s of courses. Then again it will only break if you do something stupid. I think i found a bug where if you add a cohort that you have not manually added any users to then set a filter for that cohort. In /cohort/index.php the source says pluginname and all 4 of the edit buttons disappear.
  • Picture of RTE 751
    Fri, Jul 5, 2019, 6:14 AM

    Great Job! It would be perfect having the possibility to send a message to the cohort..(/local/cnw_smartcohort/view.php?id=1) Smart cohort and mailing system..
Please login to post comments