ELIS 2013 Manual

ELIS Users

CSV Upload of Users

CSV upload can be used to create/update users and edit user profile field values. The profile field values can be used to assign users to user sets. First, the profile field has to be created in Moodle.

To create a Moodle profile field go to Administration block > Site Administration > Users > Accounts > User Profile Fields. For this example we will use a dropdown menu profile field, Math Level. The short name for this field is "mathlevel". For this profile field the menu options (values) being set with the file are "ML4" and "ML5".

Create dropdown menu field

In the CSV file "profile_field_" is entered in the header before the shortname of the profile field. The last column of the next image demonstrates this. The entry in the column header is "profile_field_mathlevel". The value assigned to the users is one of the menu options for the Math Level profile field.

Example of CSV upload

To upload the CSV file go to the Administration block > Site Administration > Users > Accounts > Upload users. Select the Choose a file button or drag and drop a file into the space provided.

Upload users screen

Once the file is uploaded, a list of the uploaded users is shown along with a list of additional settings that can be applied to the users. Review the list of settings before finishing the upload. The following image shows an example of the settings on the preview screen.
  1. Upload type: Enter the type of upload. For this example "Add new only, skip existing users" is selected.
  2. Other fields: This is a list of the custom profile fields not being set by the file, these are considered defaults on this screen.
Upload user preview

Once the additional settings have been reviewed and adjusted select the Upload users button. Complete the user upload by selecting the Continue button at the bottom of the page. For this example the new users will be created in Moodle and then id numbers will be manually added to add the users to ELIS as well. Users are only created in ELIS if they have id numbers, users can have id numbers automatically created from their username if set in the Program Management block > Admin > Configuration > User Settings. All information from CSV upload is applied to the users as soon as the upload is complete.

Completing user upload

User Set Assignment with Profile Fields

Users can be automatically assigned to user sets by custom Moodle profile fields. In the example above we created a profile field, Math Level, and assigned the 4 users the value ML4 for that profile field. Next we will create a user set and automatically associate all users with their Math Level profile field set to ML4.

Math Level 4 user set

Once the user set is created, all users that have their Math Level profile field set "ML4" are automatically assigned to the Math Level 4 user set.

Assigned users screen for Math Level 4 user set

If we want to move the users to another user set we can do that by updating user data via CSV upload. For example, change the custom profile field Math Level to ML5 for a couple users in the file, have that value auto-associate to another user set.

Updating users with csv upload

When updating existing users there are additional settings, for example the "Existing user details" field. For this example "Override with file" is selected. Some settings refer to defaults. Defaults are referring to the profile field values that are listed in the "Other fields" section. Any of the profile field values not set in the file can be set on the preview screen as "Default values". All the users in the file will be assigned the default values from the preview screen when existing user details is set to "Override with file and defaults".