Bulk upload of usernames into courses

Moodle has the functionality of reading csv files with column headers complying with specific syntaxes. We can gather students’ email addresses, section name, and course short name into a csv file. Then we bulk upload this file into Moodle with the option of updating existing users on the system. Hence, it is easier for a teacher to filter out the student’s attempts or submissions based on section #. Column headers would be like: username | course1 | course 2 | role1...