Moodle plugins directory: Mass enrolments | Moodle.org
Mass enrolments
One awkward thing about Moodle 1.x and the recent Moodle 2.x is that teachers are allowed to manually enroll known Moodle accounts to a course as teachers, non editing teachers, students... , but not using a 'flat file' produced by some CSV export.
They have to send a file to an admin user who will inject it into Moodle using the standard 'flatfile enrollment' method with the following limitations :
- Teachers must provide account's and course idnumbers and admin user must reformat the file by adding the required extra columns 'add' and 'target role', before copying the file to the appropriate location in moodledata directory.
- The report information is sent to admin, not to the course's teacher; so admin has to forward it to the teacher after the cron job has completed.
- There is no way in flatfile enrollment method to specify in which groups these accounts should be added, so teacher has to go manually again across the list to assign accounts to groups.
This little extension, that adds itself to course administration menu will hopefully help teachers to do it themselves.
After installing it a new item 'Bulk enrolments' will appear in the course administration menu for teachers (see screenshots).
It requires a CSV file, prepared by the teacher, with an unique Moodle id in the first column (idnumber, username or email) and optionally a group name in the second column. The first line of the CSV file must be present but its content is currently ignored.
Options are provided to force group (and grouping) autocreation if they do not yet exist in the target course.
Every line of the file may contain a different group name or even no group for some accounts
I installed this on Moodle 2.7 today and I cannot get the links to appear under the Users menu. I have added the line to the config.php file. The plugin works if you manually put the URL in the address bar.
Any ideas? Perhaps something has changed in 2.7. It works fine on 2.6
Thanks in advance - a really good plugin by the way.
Thanks
It's Moodle 2.7 and onwards. I personally recommend uninstalling an older version of the plugin before installing the new one, although it shouldnt be necessary.
Cheers!
All links should be fixed now. Cheers.
Any one can pls share the CSV format to upload bulk enroll
Using Site Administration > Users > Accounts > Upload Users
Create a CSV with these columns:
username firstname lastname email city country course1 enrolperiod1 type1 role1 group1
For the course1, use the course "shortname" you want the new student to be in.
For enrolperiod1, set it to number of days 90, 180, 365, etc.
For type1, locate & place the roleid(numeric value only) you wish your student to have by default.
For role1, use the SAME role's shortname.
For group1, use the FULL name of the group you want them to belong.
Save your CSV and then follow the path aforementioned. The configurations should not have to be manipulated for this to upload multiple new users and enroll them for a specific period of time in a course, and having a role and group appointment applied.
Works like a charm unless you try to use anything but two characters when you set the country. The only issue I ever had with this workflow was trying to run it initially with the word India for the country, rather than IN.
Many thanks for continuing Patrick's great work since his passing.
Do you have a version of this plugin available for Moodle 3.2?
Has anyone else been using it on 3.2? Can you share your experiences, testing or any issues found?
Thanks.
I'll be looking into this plugin again in the next few days and either confirm it's working on the Moodle 3.x branch, or make the necessary changes to get it up to date.
Cheers!
Functionally there's no changes. The plugin has been updated to comply to Moodle Coding Standards more and has been tested to work up to Moodle 3.3
Sorry it took a while since this is one of the plugins that's maintained in my spare time.
Cheers,
Rogier