| 107 | **c. Create bulk accounts via a CSV file** |
| 108 | |
| 109 | |
| 110 | To create bulk accounts via a CSV file in Moodle, follow these steps: |
| 111 | |
| 112 | 1. **Prepare CSV File**: |
| 113 | - Create a CSV (Comma Separated Values) file containing the user information you want to import. The file should include columns for each required user attribute, such as username, password, email address, first name, last name, etc. Here's an example format: |
| 114 | |
| 115 | √. |
| 116 | |
| 117 | username,password,email,firstname,lastname |
| 118 | uop_sahan,password123,sahan@example.com,Sahan,Fernando |
| 119 | uop_abc,password456,madura@example.com,Madura,Smith |
| 120 | ``` |
| 121 | |
| 122 | you can **downlord CVS file **[https://ws.learn.ac.lk/attachment/wiki/Adding-courses/bulk-Courses-New%20.csv here ] |
| 123 | |
| 124 | |
| 125 | Ensure that your CSV file is correctly formatted and that the required fields are included. |
| 126 | |
| 127 | 2. **Log in to Moodle**: Access Moodle with administrative privileges using your credentials. |
| 128 | |
| 129 | 3. **Access User Management**: |
| 130 | - Once logged in, navigate to the "Site administration" area. This is typically located in the top-right corner of the page. |
| 131 | - Under "Site administration," locate and click on the "Users" tab. |
| 132 | |
| 133 | 4. **Access Bulk User Actions**: |
| 134 | - In the "Users" section, look for the "Accounts" submenu. |
| 135 | - Click on "Upload users." |
| 136 | |
| 137 | 5. **Upload CSV File**: |
| 138 | - On the "Upload users" page, you'll find an option to upload a CSV file. |
| 139 | - Click on the "Choose a file" button or similar to select the CSV file you prepared. |
| 140 | |
| 141 | 6. **Configure Upload Settings**: |
| 142 | - Moodle will display options for configuring the upload process. |
| 143 | - Choose the appropriate settings based on your CSV file format and the desired actions. This may include options such as: |
| 144 | - Update existing users: Whether to update existing user accounts based on the information in the CSV file. |
| 145 | - Create new accounts: Whether to create new user accounts for users not already in Moodle. |
| 146 | - Map fields: Map the fields in your CSV file to the corresponding user attributes in Moodle (e.g., username, email, first name). |
| 147 | |
| 148 | 7. **Initiate Upload**: |
| 149 | - Once you've configured the settings, review them to ensure they're correct. |
| 150 | - Click on the "Upload users" button or similar to initiate the upload process. |
| 151 | |
| 152 | 8. **Verify Upload**: |
| 153 | - Moodle will process the CSV file and display a summary of the upload results. |
| 154 | - Verify that the users have been successfully imported into Moodle by checking for any error messages or warnings. |
| 155 | - Optionally, you can navigate to the "Site administration" area and select "Users" to view a list of all users, including the newly added users. |
| 156 | |
| 157 | By following these steps, you'll be able to create bulk accounts in Moodle using a CSV file, allowing you to efficiently import multiple users at once. |
| 158 | |
| 159 | ---- |
| 160 | ** 02- Enrolment ** |
| 161 | |
| 162 | |