Import and populate groups
This procedure enables you to add particpants to course groups in bulk.
You can either create the groups during this process or set them up beforehand.
This method offers a quick and efficient way to assign students to groups, making it especially helpful for large classes where adding students individually would be time-consuming.
See the guide on using groups and groupings to find out why you might want to create groups.
In this guide:
Create the 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 (Comma delimited) (*.csv) from the drop-down menu.
Upload the file
- In the relevant Moodle course, select Participants tab in the course menu.
- From the Enrolled users drop-down 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.