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:
1390 sites
557 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.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

Comments

  • Sudhanshu Verma
    Mon, 16 Nov 2015, 6:39 PM
    Dear Nicolas,

    I have some custom profile field in moodle and when i am adding this enrolment plugin in moodle and setting rules to automate user enrollment in course and when user matching the criteria could not enrolled and also when I am clicking force enrollment button but still it is not working.
  • Nicolas Dunand
    Mon, 16 Nov 2015, 10:41 PM
    Hello Sudhanshu,

    This is a known problem that I'm currently fixing. If you're confortable using a pre-release version of the plugin, you can try out the latest release available on GitHub (see the "Source control URL link near the top of this page). If not, I should release an official new version of this plugin within a couple days.
  • Sudhanshu Verma
    Tue, 17 Nov 2015, 2:08 PM
    Thanks Nicolas for building this great plugin , I will wait for new release.

  • Nicolas Dunand
    Tue, 17 Nov 2015, 8:45 PM
    Dear all,

    I've just released a new version of this plugin, which addresses all known problems. It is available immediately, and also officially supports Moodle 3.0.

    Thanks to all who reported bugs, and especially to Martin from Canada and Kathrin from Germany, who wen to great lengths to provide details of their debugging sessions.
  • Jon Bolton
    Wed, 18 Nov 2015, 10:00 PM
    Superb - works really well, thank you. Would it be possible to show the standard user profile fields (eg. city/town, country) as well as custom profile fields?
  • Nicolas Dunand
    Wed, 18 Nov 2015, 10:22 PM
    Thanks Jon.

    Yes, I would like to add this in the future. I've added this as a feature request (see https://github.com/ndunand/moodle-enrol_attributes/issues ).

    In the meantime if anyone is willing to work on this feature I'd be glad to include it.
  • Sudhanshu Verma
    Thu, 19 Nov 2015, 2:58 PM
    Dear Nicolas,
    Thankyou Nicolas for releasing this plugin once again and fixing issues. You have done really a goodjob by making this plugin.

    Once again thankyou smile
    Sudhanshu

  • Tyler Whiteley
    Wed, 16 Dec 2015, 10:27 AM
    Hello, where do I set the duration of enrollment? When I look at the student in enrolled users, I do not see an enrollment end date.
  • LionHeart stretching
    Thu, 24 Dec 2015, 2:58 AM
    Tyler, it looks like there's no ability to define duration (with expected UI interactions) with this plugin unfortunately.

    Nicolas, great work here thank you! It's plugins like this that add basic functionality yet drastically improve efficiency that I enjoy using. No duration/expiration feature aside, still an excellent plugin.

    Could this functionality be extended to work with group enrolment keys also?
    Or what about some method to assign a role to a category, such as listing them along with the role in relation to a defined custom profile field?
  • Nicolas Dunand
    Wed, 6 Jan 2016, 5:07 PM
    Tyler, indeed there is no such functionality yet.
  • Nicolas Dunand
    Wed, 6 Jan 2016, 5:08 PM
    Justin, thanks for your feedback. Could you elaborate on how you would see the plugin work with group enrolment keys? I'm not sure to understand.
  • On the jetty
    Mon, 25 Jan 2016, 10:21 PM
    Hi

    Thanks for this plug-in, I am struggling to get it to work however sad

    When I installed and ran an enrolment instance I got a database access error as it was looking for the wrong user name field trying for mdl_user, whereas my db prefix is nmdo.

    So I changed line 102 in the attributes/edit.php (changing 'SELECT DISTINCT u.id FROM mdl_user u ' to 'SELECT DISTINCT u.id FROM nmdo_user u ' )

    The error has gone but the plug-in still will not work, I am trying to enrol based on a drop down profile field value.

    Any ideas or suggestions to investigate much appreciated.

    Thanks

    Roger
  • Nicolas Dunand
    Mon, 25 Jan 2016, 10:56 PM
    Hi Roger,

    Sorry about this code, I should remove it in the next release, as indeed the "mdl_" prefix should not be hard-coded.

    As for the drop-down values, I have not investigated a lot about it yet. Could you check in your Moodle database what the actual value for that field would be? Is is the value that's actually displayed in Moodle, or is it some other value somehow?
  • On the jetty
    Mon, 25 Jan 2016, 11:45 PM
    Many thanks for your reply Nicolas, I'm not sure of the physical value stored in the db for the drop down profile field, however I tried using a plain text input field with a simple text value but I'm afraid that did not work either.
  • Nicolas Dunand
    Sat, 30 Jan 2016, 12:38 AM
    Roger, plain text fields should work in all cases. If you go into the enrollment method you mention, what is the debugging code displayed at the bottom? Maybe PM me instead of posting it here as it may contain some information that could be considered sensitive.
Please login to post comments