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): 314

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.

Hi,
Any update to Moodle 3.4?
Ricardo
Hi,
after two days investigation I need your help guys.
My enrolls by profile fields stopped working and I can't find what is wrong. It's not starting automatically, but if I press "force enrolment now" - everything run smoothly. Any ideas?
Moodle - 3.3 / Plugin - (2017050100)
Hi Nicolas,
Thank you for your reply. Just wondering, is it possible to have that the criteria matches any word found in the user profile field, instead of must be exactly the same as the profile field? For example I want the user profile field to contain the word Engineering, but it can be any type of Engineering.
Regarding Ibrahim Fadis request above, the plugin https://moodle.org/plugins/local_autogroup seems to use events to automatically assign participants to groups when profile fields change, so perhaps the code for that might be useful.
This is a really useful plugin. It would be even better if you could assign enrolled participants to a group as well, as you can with the Course meta link enrolment plugin.
Posting back here after solving Rolf's problem. If the course enrolment method does not show up, the first thing to try is whether, in the plugin settings page, at lease one value is set for the field "Profile fields to be used in the selector".
Hi Ibrahim,
I guess you could listen to some event fired when the profile is modified, but I don't know whether such an event exists.
Hi nicolas,
When a user logged and update his profile custom fields, he cannot access the course that I have previously configure for the custom field. He has to log off and log on again so he can access the course. What code can I modify so the user after updating his profile will be automatically able to access the course. Do you know what code to add to resolve this issue?
Thanks!
Hi Nicolas, firstly thanks for this awesome plugin. i did use it in my version 3.3, but once i installed on version 3.4, it did install but once i created the profile field and new user insert information that matches the enrollment method it does not enroll the user, any help?
Thanks Rolf. I'm really wondering now, but I quickly spun up a Moodle 3.4 here and the plugin shows up as expected. Please PM me so we can sort this out.
Nicolas, I really apprechiate your assistance! As I mentioned, I my moodle 3.3 it works, in a moodle 3.4 it doesn't. In both Installation I am active as primary admin only... 3.3 OK, 3.4 not working
Dear Rolf,
By default, only the Manager role in Moodle can set up an enrolment method with this plugin. Did you check this as the Moodle administrator? If you want to change this behaviour, you can change this permission in your Moodle's role definitions.
Thank you for your kind assistance, Nicolas. I have a Moodle 3.3 Installation where everything is fine with your plugin. But in Moodle 3.4 I can't get it work. All settings are like in my M3.3! Nevertheless the Method "enrol by userfiled" does not appear in the list where it shoul be to be set as enrolement methode for a course.
Rolf
Hi Rolf,
Thanks for your feedback. You have to set up the plugin (go to the plugin's admin settings page) to set a couple parameters for the plugin to show up.
Thank you Nicolas, but I cannot use Version 3.3 on my Moodle 3.4. Installation is OK but Enrolmentmethod "...by userprofile filed" is not shown up as a selectable enrolement method. It is marked active in the list of enrolment methods but in course-enrolments it does not appear in the list of selectable methods.. So I can't use it.
Rolf