Enrolment: Enrol by user profile fields

enrol_attributes
Maintained by Picture of Nicolas Dunand Nicolas Dunand
This plugin allows users to be enrolled according to any value stored in their user profile.
583 sites
301 downloads
42 fans

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

Picture of Nicolas Dunand
Nicolas Dunand (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Nicolas Dunand
    Fri, 2 Feb 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.
  • Picture of Nicolas Dunand
    Fri, 2 Feb 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.
  • Picture of Nicolas Dunand
    Fri, 2 Feb 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.
  • Picture of Rolf Petersen
    Fri, 2 Feb 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
  • Picture of Nicolas Dunand
    Fri, 2 Feb 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.
  • Picture of Rolf Petersen
    Fri, 2 Feb 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
  • Picture of Nicolas Dunand
    Fri, 2 Feb 2018, 6:00 PM
    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.
  • Picture of Rolf Petersen
    Fri, 2 Feb 2018, 6:21 PM
    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
  • Picture of Nicolas Dunand
    Fri, 2 Feb 2018, 7:43 PM
    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.
  • Picture of Juan Du Plessis
    Wed, 7 Feb 2018, 9:45 PM
    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?
  • Picture of Ibrahim Fadl
    Thu, 8 Feb 2018, 2:35 PM
    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!
  • Picture of Nicolas Dunand
    Fri, 9 Feb 2018, 8:51 PM
    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.
  • Picture of Nicolas Dunand
    Fri, 9 Feb 2018, 8:52 PM
    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".
  • Picture of Eoin Campbell
    Fri, 9 Feb 2018, 11:13 PM
    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.
  • Picture of Eoin Campbell
    Fri, 9 Feb 2018, 11:16 PM
    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.
1 2 3 4 5 6 7 8 9 10 11 12 13
Please login to post comments