Importing Students Directly into Course

Importing Students Directly into Course

by Mark Hardwick -
Number of replies: 1

I'm trying to import a csv file directly into a course to enroll users.  Moodle 2.6

Currently we have been importing users using a csv file from Access into Moodle > users to get them into the system through the: users > import, section and its been working great for nearly 2 years now with the drag and drop feature.  We then open each course, search and select each user one by one and enroll them into a specific course.  There are no problems doing this but it seems like there should be a way to import a csv file directly into the course.  

I've tried opening a course and going under users > groups > import, and when I try to use the same csv that I use to create users in the main system, it has an error about the username.  Am I in the right spot for importing users directly into a course but maybe have the wrong info in my csv file?  If so, what data would I need in the csv for this page?

Would I still need to import them into the main system first and then import them into a course or is there a one step method to get them into the system and course at the same time?  If so, what will happen if I enroll them in a second course now that they are in the system?  

Thanks, Mark  

Average of ratings: -
In reply to Mark Hardwick

Re: Importing Students Directly into Course

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers

(Just moving this from the Quiz forum into the Enrolments forum ) You can add users directly from outside of Moodle straight into a course with a CSV file from Site administration > Users > Accounts >Upload users and if later you want to add them to more courses you can do it with a CSV file (choosing "update existing users" ) or manually in each course. See Upload users for the correct fields to add. Basically you add a field 'course1' for one course you wish to enrol them in, 'course2' for another if you want to enrol them in more than one, etc, and then for each student you type the name of the course in that field - so HistoryY7, might go in the course1 column and GeographyY7 might go in the course2 column.