Enrolment Method by Profile Fields

Re: Enrolment Method by Profile Fields

by Eoin Campbell -
Number of replies: 3
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

After installing the plugin you must do the following.

  1. Enable the plugin on the Enrolment methods page (e.g. http://localhost/m35/admin/settings.php?section=manageenrols).
  2. Create custom profile fields in the User profile fields page (e.g. http://localhost/m35/user/profile/index.php), because the plugin doesn't work with the built-in profile fields.
  3. Configure the plugin to select all the custom profile fields that you want to enrol based on (see http://localhost/m35/admin/settings.php?section=enrolsettingsattributes).
  4. When you go to the enrolment methods page for a course (e.g. http://localhost/m35/enrol/instances.php?id=3), and click on the Add method drop-down field, then you will see the method "Enrol by user profile field" available in the list.

In reply to Eoin Campbell

Re: Enrolment Method by Profile Fields

by altan ahmet -
Hi Eoin

Im using the enrolment by user profile fields plugin. Ive got as far as enabling the plugin, and I'm stuck on creating custom profile fields. Your url links dont seem to be working ? Are you able to help with the url links you have posted please ? Some examples would be great in helping me understand what I need to do.

I'm looking to set up an enrolment for a specific course based on an email address ending ( .gov.uk ) using the enrolment by user profle fields. will I be able to set up a user profile field using an email address ending ?
In reply to altan ahmet

Re: Enrolment Method by Profile Fields

by Eoin Campbell -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hi Ahmet, the links I included were examples, for a local test Moodle 3.5 installation. The enrol by Profile field method won't help with what you want. Firstly, it works only with custom profile fields, and email address is a built-in field. Secondly, it doesn't support regular expressions such as *.gov.uk, so you can't use it to specify generic email addresses.

I don't know of any method which would automatically enrol a user on a specific course based only on their email address domain.

Average of ratings: Useful (1)
In reply to Eoin Campbell

Re: Enrolment Method by Profile Fields

by altan ahmet -

Thanks Eoin

I suppose I'll have to stick to manual enrolments 


Cheers