The principle is the same as for bulk uploading of users.

    1. Under the site administration, click users, then upload users.

    2. click on the example csv file to download and view how the users must be loaded on the spreadsheet
    3. usernames are small characters with no spaces and special characters, and you will notice the headings of the fields are all small letters
    4. So you can populate the fiels for username, firstname, lastname, and email


    5. Go into the course you want to load users, and open the settings and take the shortname.

    6. Add the fields course1, type1 to your excel and add the course shortname in there and use 1 (1 = student. 2 - teacher. 3 = non editing teacher by default). You can add more courses like course2 type2 course3 type3.


    7. Then you save the file as CSV


    8. Then you go to upload users again and load the csv file

    9. Change the setting to Add or update existing users, and check that role1 is a student.
       
    10. Users then gets enrolled