ELIS CSV upload users: Różnice pomiędzy wersjami
Created page with " Category: ELIS Category: ELIS Users" |
Nie podano opisu zmian |
||
| (Nie pokazano 4 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
| Linia 1: | Linia 1: | ||
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.<br /><br />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".<br /><br />[[Image:elis_create_dropdownmenufield.png|frame|center|]]<br />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.<br /><br />[[Image:elis_csvfile.png|frame|center|]]<br />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.Then select the Upload users button.<br /><br />[[Image:elis_uploadusers_screen.png|frame|center|]]<br />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. <br /> | |||
<ol> | |||
<li>Upload type: Enter the type of upload. For this example "Add new only, skip existing users" is selected. <br /></li> | |||
<li>Other fields: This is a list of the custom profile fields not being set by the file, these are considered defaults on this screen.</li> | |||
</ol><br />[[Image:elis_userupload_preview.png|frame|center|]]<br />Once the additional settings have been reviewed and adjusted, 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.<br /><br />[[Image:elis_complete_userupload.png|frame|center|]]<br /> | |||
<h3>User Set Assignment with Profile Fields<br /></h3><br />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. <br /><br />[[Image:elis_usersetML4.png|frame|center|]]<br />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.<br /><br />[[Image:elis_usersetML4_assignedusers.png|frame|center|]]<br />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. <br />[[Image:elis_userupload_updateusers.png|frame|center|]]<br />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".<br /> | |||
[[Category: ELIS]] [[Category: ELIS Users|EAAf]] | |||
[[Category: ELIS]] [[Category: ELIS Users]] | |||
Aktualna wersja na dzień 22:33, 25 lut 2014
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".

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.

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.Then select the Upload users button.

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.
- Upload type: Enter the type of upload. For this example "Add new only, skip existing users" is selected.
- Other fields: This is a list of the custom profile fields not being set by the file, these are considered defaults on this screen.

Once the additional settings have been reviewed and adjusted, 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.

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.

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.

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.

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".