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:
1310 sites
121 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.


Screenshot #0


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

Comments RSS


  • Tue, Dec 16, 2014, 3:54 AM
    I just upgraded to moodle 2.7. The screen-shot you posted makes your plugin look pretty straight forward but the version that is released for moodle 2.7 looks nothing like the screen shot. In fact, it only has one field to input data into. Can you give an example of how to use this one? Thanks
  • On the jetty
    Tue, Mar 3, 2015, 1:18 AM
    Hi, I'm trying to get this work with Moodle 2.8 but I cannot see where to change the list of profile fields that are allowed. Where do you set the list of profile fields that can be used in the rules?


  • Tue, Mar 24, 2015, 8:38 PM

    I am not sure exactly how this works and how you can customise it to use our own Customised profile fields.
    Any pointers would be great.
  • Wed, Mar 25, 2015, 10:40 PM
    Hi and thanks for the plugin, Could I use this to force learners to complete a empty profile field? So my emrollment method would be if field_company != "" then they could be enrolled? So long as it's not empty?
  • Tue, Jul 28, 2015, 7:35 PM
    Hi I am upgrading from 2.4 to 2.8 and was wondering if anyone got the plugin to work on 2.8 yet? Thanks Stephanie
  • Thu, Jul 30, 2015, 5:22 PM
    Hi Nicolas, was hoping you could update me with the plans for this module and if a 2.8 version would be available, if there are no plans yet to upgrade could you give me a few pointers? We have thousands of shibboleth users and use your plugin to enrol them all, so its integral to our plans. Thanks Stephanie
  • Thu, Jul 30, 2015, 5:31 PM
    Hi Stephanie,
    I just checked and it works on Moodle 2.8 and 2.9 (although I have to correct a couple minor things which do not prevent the plugin from working). We are going to upgrade to Moodle 2.9 in a month, so I'll release a new version in a couple weeks.
  • Thu, Jul 30, 2015, 5:43 PM
    Hi Nicolas, thats brilliant the plugin has always worked well for us. The minor issues won't affect me then using it on 2.8? Thanks Stephanie
  • Thu, Jul 30, 2015, 7:17 PM
    I'm sure they won't. Anyway, the version I'm planning to release in a couple weeks will be 100% compatible with Moodle 2.7-2.9.
  • Thu, Jul 30, 2015, 8:45 PM
    Thank you Nicolas!
  • Stephanie Gerald
    Thu, Aug 20, 2015, 12:14 AM
    Hello! I'm also trying to find some sort of documentation on how I add in my own custom profile fields? I've tried editing the "jquery.booleanEditor.js" file that some others have commented here about, but my profile field never shows up in the profile field drop-down within the course enrollment plugin. How do we add our custom profile fields to the drop-down list?
  • Tue, Sep 8, 2015, 11:38 PM
    will this work on 2.9? Any develop plan for that?
  • Larry Lippke
    Fri, Sep 25, 2015, 12:19 AM
    I don't want to automatically enroll everyone with specific content in a profile field, but use that as a filter for people wanting to self enroll. That is, when someone intentionally attempts to enroll in a course, the plugin checks the user's profile. If the condition is met, the user is enrolled. If the condition is not met, the user is not permitted to enroll. Is this the way this plugin works?
  • Wed, Oct 14, 2015, 12:58 PM

    First, thanks for everyone's feedback. The new version (2.0) if this plugin is now available, the main enhancements are:

    - official support for Moodle 2.7 to Moodle 2.9
    - the enrolment plugin does not have to rely on Shibboleth authentification any more
    - you can now easily define the custom user profile fields you wish to use
  • Wed, Oct 21, 2015, 5:20 PM
    I installed your plugin but I can't see it in the "add method" list. What am I doing wrong? I'm on moodle 2.9.3, the plugin is already activated.
Please login to post comments