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): 314

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.

I'm the administrator for the site. smile
Theme should not be an issue – it could make things display incorrectly, but not disappear completely. So, the other possible issue is that you need to have the 'enrol/attributes:config' permission in that course, and that is normally only for managers (i.e. not for teachers). What role do you have in that course?
Okay, that's not a problem... that's the profile field I want to use anyway, but I still can't get it to show up at the course level. I still only get "self / manual" enrolment. I have the plugin installed in a Moodle 3.1.2+ site. I'm using "Academi" as my theme. Could that be an issue?
Hi Kate,
This is a limitation of this plugin, it only works using custom profile fields (i.e. the one(s) you created yourself). So no standard fields can be used.
Hi Nicolas,
The default role only shows one profile field - and it's the one that I created "Profile Fields" - it doesn't allow me to choose any other profile field, nor does it allow me to choose anything further. I do have the plugin enabled as well. If I could attach as screen cap it might explain better what I'm seeing, but I don't have that option here. sad
Hi Kate,
In the main plugin settings, you have to set the "Default role" and at least one item in Profile fields to be used in the selector". Is that the case ?
Then, under your Moodle administration, under "Manage enrol plugins", make sure this plugin is enabled.
After that, you should have the option to add this enrolment method to any of your courses.
Hi Borko,
Thanks for your feedback. You can use two (or any number of) conditions by cliking the "+" sign to add a condition. However, this plugin currently only checks for equality (i.e. if some attribute is equal to a value). You would need to check for a value smaller than another (i.e comparing dates), which is not possible at the moment.
This could probably be programmed quite easily but I really don't have any time to do this in the foreseeable future. If you could come up with a code change providing this feature, I'd be happy to integrate it.
Hi there, I'm having a hard time getting this working... When I go to my settings for the plugin I can't change any of the settings even though it's showing my "profile fields to be used in the selector". I have "User Type" and should be able to choose between employee or client.
It says "If you don't select any role here, this makes the plugin moot and hence disables its use in courses.
The feature below may however still be used in this case."
Any idea what I'm doing wrong??? The option isn't offered in the courses either.
My screen certainly doesn't look like your screen cap in the description either. sad
Thanks
Hi
First of all, plug in is GREAT!
Can I use two conditions? I have two custom fields, one is starting day of work and I want enroll users started working BEFORE some day.
Second, i have another custom field, employed, or not.
Can you help?
Hi Ricardo,
A very good usage of this plugin indeed ! It should work but it appears that the space is causing some problem.
When you display the rule editor when editing an existing rule, the plugin should display debugging information at the bottom of the page. Could you send me those? (preferably via private message)
Hi Nicolas,
I'm trying to use the pluggin to enrol users by a city of a region, in the User profile fields rules I set firstly the "Region" field, then I added a field "autoenrol" in order to be able to unenrol users and finally I added group of fields where I put several cities. It looks like this:
Enrol if: (region=metropolitana)AND(autoenrol=1)AND((city=santiago)OR(city=La Pintana)OR(city=melipilla))
Everything works good, but when I use city named with two word like "La Pintana" the pluggin does't work.
Can you help me?
Hi Bobby,
So your enrolment instance seems to be set up correctly. If you don't click the button, users will be enrolled when they log in.
Yes it does.
Hello Bobby,
what if you use the "Force enrolments" button, does it work on these users?
Good morning, I've been having an issue with users being auto-enrolled through our LDAP server. When I manually add students with the profile trigger it works perfectly, but have yet to have any students added by our student management system enrolled. Is there something I can do to resolve this? thank you very much for your time.