Moodle Plugins directory: CSV group import | Moodle.org

CSV group import
Other tools
Maintained by
Kirill Astashov
Allows to assign users to groups offline and upload a CSV file. Will populate existing groups and create new groups as well.
Latest release:
6 downloads
5 fans
Current versions available: 1
Allows to assign users to groups offline and upload in a CSV file. Will populate existing groups and create new groups as well. Usernames must exist and be enrolled in the course. The patch modifies core group import script and the related language file.
Installation:
* Apply patch.
Basic CSV fields used:
* coursename (for course short name)
* username
* groupname
Sample CSV file:
coursename,userid,group
Courseshortname1,username1,Group1
Courseshortname1,username2,Group2
Courseshortname1,username3,Group2
Field names recognised as username:
* user
* userid
* username
* user id
* login
* login name
* studentid
* student id
Field names recognised as group name:
* groupname
* group
Developed by NetSpot, Australia.
Funded by the University of New South Wales.
Useful links
Contributors
Kirill Astashov (Lead maintainer)
Please login to view contributors details and/or to contact them
I'm not sure but it seems like it could be improved and brought into core with a little refining (by anyone) as the target functionality seems generic enough.
This patch though could also be converted to an admin tool plugin to make it more useful to others.
The git commit is below incase anyone wants to access this quickly via git. https://github.com/kastashov/moodle/commit/de7a1b0bd5bb75c1a5cfb0e718465a81cdc8705f
Thanks for the response, we'll discuss options.
> The git commit is below incase anyone wants to access this quickly via git
I doubt that, cos the plugin is still in 'Waiting for approval' state.
I've now approved this patch within the Other category. You will need to submit a new entry if you convert it to an actual plugin.
I've made a small block called "groupreg" that allows teachers to register students in a course and add them to existing or new groups from a .csv file. This overcomes one problem with the CSV import function presented here since it requires that users already be enrolled in the course.
The .csv file contains one or two fields. The first is either the students' usernames or email addresses. The second field is the new or existing group name. An Excel report of the results can be downloaded.
The block should be compatible with 2.3 or newer, but has not been tested on all versions. I've attached the block herewith.
It is available here: https://github.com/spnova/groupreg/tree/0123204d874f89ce4fcd0aa83803a4b7ce9d2fee or contact me at tom@tomrobb.com
Feedback welcome!