Import and populate groups
This guide details how to add members to groups by importing a file. The groups themselves can also be created as part of this process, or you can create them in advance.
Adding students to groups by this method is quick and easy. It is particularly useful for large classes, where adding students one by one is time consuming.
How to add group members by file upload
Create your file
- In an Excel workbook, populate two columns of data as follows. Your data does not need headings.
- Column A: a unique identifier of the user to be added. This should be either:
- a Warwick email address e.g. example.student@warwick.ac.uk;
- an ID number e.g. 1234567, or;
- a username, e.g. abcdef.
You should use the same data type for all users to be added. If you are adding staff members using ID numbers, please include the department code e.g. EC1234567. You can find the department code for the staff member in the Participants list.
- Column B: the group name. If you have already created your groups in Moodle, the group name should match exactly what is in Moodle.
- Column A: a unique identifier of the user to be added. This should be either:
- Save your file in .csv format. To do this, click File > Save as and select .csv from the drop-down menu.
Upload your file
- In the relevant Moodle space, select Participants tab in the course menu.
- From the Enrolled users dropdown menu, select Import group members.
- Under User identity, and from the User field drop-down menu, select which type of identifier - username, email address or ID number - you have used in your spreadsheet.
- Under Group options:
- from the Assign to groups drop-down menu, select Yes.
- from the Use group drop-down menu, select Use file data.
- from the Create groups drop-down menu, select Yes if your groups need to be created.
- Under Import file, select your file.
- Click the Import button.
- Click the Continue button to review the groups.
The information on this page relates to Moodle v4.1 and was last updated September 2023.