Your Moodle version

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.
373
268
21

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 Peter Ward
    Tue, Jun 21, 2016, 10:51 PM
    Hi Nicolas. Hopefully my last question. Is there a cron job that runs in order to perform the enrolements of your plugin?
    Cheers.
  • Picture of Joao Pedro Barros
    Wed, Jun 22, 2016, 4:30 AM
    When it will support Moodle 3.1?
  • Picture of Melissa Pauley
    Thu, Jun 23, 2016, 12:54 AM
    Peter Ward, your follow-up notes helped me with an issue I was having! Thank you!
  • Picture of Nicolas Dunand
    Mon, Jul 11, 2016, 8:49 PM
    Hi Peter,

    Sorry I was away for a few weeks. Thanks for your feedback.

    Actually, the HTML editor does have this drawback. The solution for such fields is to use a field of type "text input" instead of "text area". I actually didn't think of the case when people would use a text area to store these values.

    The enrollments are processes as follows:
    a.) When a user logs in, all rules are check to see whether any apply. If so, the user is enrolled in any relevant courses before arriving on the landing page.
    b.) There is a cron job running every 6 hours (because this is heavier lifting) to check for all rules, enrolling any users that need to be enrolled.

    Cheers,

    Nicolas
  • Picture of Nicolas Dunand
    Mon, Jul 11, 2016, 8:50 PM
    Hi Joao Pedro,

    From our testing, the current version fully supports Moodle 3.1. I'll release an update in the coming weeks, providing official Moodle 3.1 support.
  • Picture of Nicolas Dunand
    Mon, Jul 11, 2016, 8:51 PM
    Hi Melissa,

    Sorry for being too late to help, and glad that Peter could help. Could you please write down a couple lines here to help me locate the issue, so that I could improve the plugin ? It could also be beneficial to other users that could be stuck with the same issue.

    Thanks,
    Nicolas
  • Picture of Narissa Bayler
    Wed, Jul 13, 2016, 12:26 PM
    Hi. Am running Moodle 2.8. Installed the plugin without any problems and it's showing as available (eye open) in the enrolments plugins however it is not present in any courses' drop down box for adding it as an enrolment method. Any suggestions or help would be appreciated
  • Picture of Nicolas Dunand
    Wed, Jul 13, 2016, 12:58 PM
    Hi Narissa,

    To activate the plugin you have to check its settings (in the Administration block -> Site Administration -> Plugins -> Enrolments) and make sure at least one field is selected.
  • Picture of Narissa Bayler
    Fri, Jul 15, 2016, 7:22 AM
    Hi Nicolas
    I'm not sure if I'm having a dense moment but I'm assuming you're referring to Site admin > plugins > enrolments > Enrol by user profile or did you mean something else?
    This is all I get on that page:
  • Picture of Nicolas Dunand
    Fri, Jul 15, 2016, 2:41 PM
    Hi Narissa,

    I see. This is likely because this plugin only works with additional profile fields – so the only fields you could select here would be some of these. To define additional profile fields, go to Site admin > Users > Accounts > User profile fields.
  • Picture of Peter Ward
    Fri, Jul 22, 2016, 8:07 PM
    Hi Nicolas,
    I need to check something with you that you answered for me previously.

    You said.....
    The enrollments are processes as follows:
    a.) When a user logs in, all rules are check to see whether any apply. If so, the user is enrolled in any relevant courses before arriving on the landing page.
    b.) There is a cron job running every 6 hours (because this is heavier lifting) to check for all rules, enrolling any users that need to be enrolled.

    So I have now.....
    Just applied your plugin to a moodle v3.1 and configured it just as I did in moodle v3.0
    My tables are prefixed mood_ and not mdl_ so I changed your edit.php file to match

    But my user isn't logged in as per a) above. Maybe there are other references to mdl_ I need to change, please advise

    also with regards b) what is the name of the cron job that runs?

    Many thanks in advance.

    Peter
  • Wazza
    Fri, Jul 22, 2016, 10:21 PM
    Any time until Moodle 3.1 support?
  • Picture of Nicolas Dunand
    Mon, Jul 25, 2016, 1:38 PM
    Hi Peter,

    There are a couple spots in edit.php, but that's the only file that needs patching. The upcoming release addresses this issue, and you won't have to patch it anymore.

    The cron function is in lib.php.
  • Picture of Nicolas Dunand
    Mon, Jul 25, 2016, 1:48 PM
    Hi Richard,

    Official Moodle 3.1 support is available as of now.
  • Picture of Peter Ward
    Tue, Jul 26, 2016, 12:06 AM
    Thanks Nicolas.

    also with regards b) what is the name of the cron job that runs?

    Cheers

    Peter
1 2 3 4 5 6
Please login to post comments