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:
1345 sites
342 downloads
110 fans
Current versions available: 4

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.

Screenshots

Screenshot #0

Contributors

Nicolas Dunand (Lead maintainer)
RISET Université de Lausanne: Supporting institution
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Fri, Oct 13, 2017, 4:43 PM
    Hi Nicolas,
    I'm Francesco...I've a Moodle 3.1.6...I've installed the plugin version 2.4.2.
    The installation has been successful.
    The problem is that the "Enrol by user profile fields" method does not appear in Enrolment Methods, even if it is enabled between plugins.
    Do you know how to resolve it?
    Thanks!
  • Fri, Oct 27, 2017, 4:33 AM
    Hi Francesco, we had the same issue and it was corrected by saving the setting in the plugin enrollment configuration. The value was empty in the table mdl_config_plugin even if we saw the correct field in the configuration.
  • Fri, Oct 27, 2017, 4:35 PM
    Hi Nelson,
    How did you solve the issue? did you update the database table manually?
    I would like to fix the plugin but was never able to reproduce the problem.
  • Mon, Nov 6, 2017, 11:49 PM
    Hi, Nicolas.
    I'm having this issue. The method is still not appearing in the Enrolment Methods of any course.
    However, installation was successful; Moodle is not showing any debug error messages; and the 3 fields in the database are not empty (version, default_roleid and lastcron).
    Should I have anything else in the database (mdl_config_plugins)?
    Thanks.
  • Sun, Dec 31, 2017, 7:44 PM
    Dear Nicolas,
    I need to modify your plugin so that the value stored in the user profile is compared with a "is like" operator or a "contains" operator.
    Could you tell me where make the change?
    It would be perfect if administrator could select the comparison operator from a select list.
    Thanks
  • Fri, Jan 5, 2018, 5:18 AM
    I am having the same issue as Nicolas Dunand and I am not able to get the enrollment method to show as a choice in the course.
  • Wed, Jan 17, 2018, 5:36 PM
    Dear Nicolas,
    I would like to know, if you have plans to release a Version for Moodle 3.4.
    Thanks
    Rolf
  • Thu, Feb 1, 2018, 9:38 PM
    Dear Nicolas / others,

    I have a question regarding this plugin. Do I need to enable another additional enrolment method? I can force a user that matches the user profile criteria to be enrolled in a course, but I am hoping that a user who matches the criteria has the option to enrol, but definitely not for users who do not fulfill the criteria.
  • Thu, Feb 1, 2018, 10:11 PM
    Hello Nicolas,
    I would like to know which table is recorded the date of enrollment in the course with this plugin.
  • Fri, Feb 2, 2018, 3:47 PM
    Hello Rolf,

    There's no release scheduled for Moodle 3.4, but the current release should work. Let me know if it is not the case and I'll fix it.
  • Fri, Feb 2, 2018, 3:48 PM
    Hello Sofia,
    I see what you mean, but this plugin does not provide the functionality you want. I would not know how to achieve this.
  • Fri, Feb 2, 2018, 3:50 PM
    Hello Andrea,
    I think that, as with any enrolment plugin, the table grouping all enrolments regardless of the method is the mdl_user_enrolments table.
  • Fri, Feb 2, 2018, 4:31 PM
    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
  • Fri, Feb 2, 2018, 4:33 PM
    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.
  • Fri, Feb 2, 2018, 5:55 PM
    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
Please login to post comments