Enrol by user profile fields

Maintained by Nicolas Dunand
This plugin allows users to be enrolled according to any value stored in their user profile.
Price option: Free

Supports Moodle 2.1-5.0 See all versions
Latest release: 1 year ago
Installations: 1874
Downloads (last 90 days): 312

Frankenstyle name: enrol_attributes
Enrolment

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Hi - does this work for Moodle 2.6?
Thanks
ok - looks like the options for the enrolment fields need to be hardcoded into: jquery.booleanEditor.js lines 14 -19 or so, delete as needed. Haven't got it working yet - but that seems to be the first step.
At what point does this plugin do the enrolment? Signup/login/course access?
What happens if an employee gets a raise and has to take a manger position course but he was enrolled to the employee position course. Will the plugin notice the profile_field_position change and enrol to the courses that are required of the new position
Hi. i installed this plugin but anything happened. i can see under Enrolment/Enrol By user Profile Fields and when i click this i see this on screen
Default Role ..............
Mappings ........
List of Values (one per line), e.g:.
Shib-SwissEP-HomeOrganizationType:homeorganizationtype
what is the problem?
I am trying out this module on a test site and am having problems for the profile fields. Where are the custom profile fields pulled from. I see the sample profile fields from your screenshot in my dropdown list, but these are not defined user profile fields on my test system. I have also created 2 custom profile fields, but they do not show up in the drop down.
Noob here, is there any documentation for this plugin?
Hi. Nicolas,
Thanks for your help so far. Much appreciated.
Sorry. Have another question/other questions.
I am new to this plugin and was wondering if you have documentation or an example of how to map Moodle custom fields and modify the dropdowns. I am trying to get my head around mapping fields to labels for the plugin.
For instance, Is there a way of mapping Moodle Profile Fields or Custom Profile Fields through the admin interface of Moodle, or does this need to set in the jquery.booleanEditor.js? Same with the dropdown labels.
The admin screen example seems to map Shibboleth fields to mappings defined in the JavaScript file.
I am able to modify these through the JavaScript file, but what would be the impact when upgrading?
For instance, if I have a custom field, called test (profile_field_test) and want to use a label 'Testing', which should appear in the dropdown also. Do I need to add in the Admin screen the following?
"Testing":"profile_field_test"
In lib.php. the "profile_field_" value prefix is added as standard (which I assume is the reason why only custom fields are allowed). Will removing this allow me to use standard Moodle fields also? Or is there another option to allow for enrolments based standard fields? For instance, enrol a user based on the Language list (e.g. mapping a Language label to the lang value to enable enrolment for language specific versions. Similar to country specific versions, for instance?
Many thanks in advance.
Hi Ferry,
The latest version has been tested and is working on Moodle 2.5. It is available on GitHub (check the "Source control URL" link above) and should also be available here directly shortly.
Hi Nicholas,
Is there any indication when the plugin will be available for version 2.5 of Moodle? Will the 2.4 version work OK on 2.5 also?
Many thanks.
Hi Alan,
It seems you are using Microsoft Internet Explorer 8, which might not be well supported by this plugin. Could you try with Chrome or Firefox and tell me if they also yield a JavaScript error?
Using Moodle 2.4.4+ (Build: 20130606). Installed plgin, tried to configure enrolment, receive a javascript error.
Message: 'label' is null or not an object
Line: 277
Char: 13
Code: 0
URI: ../enrol/attributes/js/jquery.booleanEditor.js
Thanks, just added a screenshot and bug tracker URL.
Thanks for sharing this with the community, please consider adding a issue tracker url and any documentation/screenshots.