Enrol by user profile fields

Maintained by Nicolas Dunand
This plugin allows users to be enrolled according to any value stored in their user profile.
Price option: Free

Supports Moodle 2.1-5.0 See all versions
Latest release: 1 year ago
Installations: 1874
Downloads (last 90 days): 312

Frankenstyle name: enrol_attributes
Enrolment

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Thank you Nicolas!
I'm sure they won't. Anyway, the version I'm planning to release in a couple weeks will be 100% compatible with Moodle 2.7-2.9.
Hi Nicolas, thats brilliant the plugin has always worked well for us. The minor issues won't affect me then using it on 2.8? Thanks Stephanie
Hi Stephanie,
I just checked and it works on Moodle 2.8 and 2.9 (although I have to correct a couple minor things which do not prevent the plugin from working). We are going to upgrade to Moodle 2.9 in a month, so I'll release a new version in a couple weeks.
Hi Nicolas, was hoping you could update me with the plans for this module and if a 2.8 version would be available, if there are no plans yet to upgrade could you give me a few pointers? We have thousands of shibboleth users and use your plugin to enrol them all, so its integral to our plans. Thanks Stephanie
Hi I am upgrading from 2.4 to 2.8 and was wondering if anyone got the plugin to work on 2.8 yet? Thanks Stephanie
Hi and thanks for the plugin, Could I use this to force learners to complete a empty profile field? So my emrollment method would be if field_company != "" then they could be enrolled? So long as it's not empty?
Hello
I am not sure exactly how this works and how you can customise it to use our own Customised profile fields.
Any pointers would be great.
Iain
Hi, I'm trying to get this work with Moodle 2.8 but I cannot see where to change the list of profile fields that are allowed. Where do you set the list of profile fields that can be used in the rules?
Thanks
Roger
I just upgraded to moodle 2.7. The screen-shot you posted makes your plugin look pretty straight forward but the version that is released for moodle 2.7 looks nothing like the screen shot. In fact, it only has one field to input data into. Can you give an example of how to use this one? Thanks
Is there a way to make this work in 2.7?
Is there a way to make this work in 2.7?
I am tryin got restrict users by email addresses.
First we have a different url for student emails stu.oursite.edu
and each username is specific in someway to the department or year within the department.
I am not sure how to achieve that or even if that is possible.
We just upgraded our DB to mysql5.6 and are now getting this error:
[26-Jun-2014 10:32:07 Australia/Sydney] Default exception handler: Error reading from database Debug: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT DISTINCT u.id FROM mdl_user u WHERE 1 AND u.deleted=0 AND
[array (
)]
Error code: dmlreadexception
* line 443 of \lib\dml\moodle_database.php: dml_read_exception thrown
* line 996 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
* line 229 of \enrol\attributes\lib.php: call to mysqli_native_moodle_database->get_records_sql()
* line 163 of \enrol\attributes\lib.php: call to enrol_attributes_plugin::process_enrolments()
* line 262 of \lib\cronlib.php: call to enrol_attributes_plugin->cron()
* line 61 of \admin\cli\cron.php: call to cron_run()
Any idea what might be causing it?
I also changed around the user profile fields at the same time to fix a syncing issue, so it may not just be the upgrade.
afaik this *should* work on Moodle 2.6 but I haven't checked it yet – I'll make sure it works for Moodle 2.7 this summer as we'll upgrade our platform