Moodle plugins directory: Enrol by user profile fields | Moodle.org
Enrol by user profile fields
Enrolment ::: enrol_attributes
Maintained by Nicolas Dunand
This plugin allows users to be enrolled according to any value stored in their user profile.
Latest release:
1415 sites
519 downloads
132 fans
Current versions available: 6
This plugin allows users to be enrolled according to any value stored in their user profile. If you use an external authentication scheme (LDAP, Shibboleth), you can store values in hidden user fields of the users' Moodle profile, and then use these values to automatically enrol users if some courses.
Useful links
Contributors
Nicolas Dunand (Lead maintainer)
CSE Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them
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!
I guess you could listen to some event fired when the profile is modified, but I don't know whether such an event exists.
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.
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)
Any update to Moodle 3.4?
Ricardo
This plugin should work on Moodle 3.4.
I have the same question as Sofia:
"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."
Thank you.
The login of field content comparison is in the lib.php file, more precisely see https://github.com/ndunand/moodle-enrol_attributes/blob/master/lib.php#L177
You could change this to affect the behaviour to match your intended purpose.
I am facing same issue in 3.1 did you get any solutions for this, please suggest if you fixed.
Bug: My enrolls by profile fields not working , It's not starting automatically, but if I press "force enrollment now" - everything run smoothly. Any ideas?