官术网_书友最值得收藏!

Time for action – creating teacher accounts

We will create twenty users that are each going to be assigned to teach four courses. If you are only creating one user on your site, you may decide to create the account manually by clicking on the Add a new user link found via the following path: Site Administration | Users | Accounts | Add a new user. When adding multiple users however, it is a much more efficient process to use the Upload users feature found in the same list under Accounts where the Add a new user feature is located. To create the new teacher accounts, follow these steps:

  1. Click on the Upload users link as previously described. The following screenshot shows the path visually:
    Time for action – creating teacher accounts
  2. After clicking on Upload users you will be presented with a screen that allows you to browse your computer and select the file that contains the information necessary to create the accounts. The file must be formatted as a CSV (Comma Separated Values) file and can be created in any text editor or in a Microsoft Excel or Open Document spreadsheet file and then saved as a CSV document. We will use Excel or an Open Document spreadsheet because there are often fields that are repeated and dragging a cell in a spreadsheet application allows for quick replication of values that are the same.

    Note

    When using special characters and/or foreign language fonts, Open Document format, created using the Open Source productivity package Open Office, provides more accurate and reliable options for using UTF8, a character encoding method that allows for the use of virtually all languages and special characters.

  3. Click on the question mark icon located to the right of the Upload users title to access detailed information about formatting of the file used to create users. The icon can be seen circled in the following screenshot of the Upload users screen.
    Time for action – creating teacher accounts
  4. Following is a screenshot of the file used to create our twenty accounts that will be designated as teachers. This file is accessible from the Packt website at www.packtpub.com/support.
    Time for action – creating teacher accounts

    There are a couple of things that should be noted in this screenshot:

    • Although it does not appear in the help file accessed by clicking on the question mark found next to the Upload users page title, the use of the emailstop field name allows you to set the user's Email activated setting, that appears in a user's profile, to This email address is disabled. We are using it because the domain we have specified for these dummy accounts is not a domain name that actually exists. This will prevent the system from attempting to send e-mails to these addresses. This is important if you will be creating users without knowing their e-mail addresses because Moodle requires that users have an e-mail address entered when accounts are created.
    • Notice the way last names for users sixteen to nineteen have been formatted using the number (for example, 6teen) instead of spelling out the name. This is because the Bulk Course Creation tool, which we will use later in this chapter, uses a search function built into Moodle that will return multiple users if one user's name is contained within the name of another user. For example, 'John Smith' and 'John Smithson' would both be returned from a search for 'John Smith'. The Bulk Course Creation tool can only assign a teacher when the search for that teacher returns a single user. Although it may be rare for this type of name overlap to occur in your system, you should be aware of the issue. You can also use usernames in place of full names when assigning teachers to courses, but will have the same problem with overlap. In our example, shown previously, a search for a teacher with the username 'Teacher1', would return eleven results. Why, you say? Because, not only would it return 'Teacher1', but it would also return teachers 10 through 19 as they all contain 'Teacher1' in their username.
    • Additionally, the help file accessed from the Upload users page is a bit vague about the fields required in the file utilized to create accounts. Let it suffice to say that, generally, the more information you include in your user account creation file, the better. The six fields included in the file shown here are a minimum for quick and easy account creation. Of course, you may opt not to use the emailstop field if you are using legitimate e-mail addresses.
    • Once you have formatted your file and saved it in the CSV format, you can then click on the Browse button to locate your file and then click the Upload users button to start the account creation process.
    • You will be presented with a preview screen in which the first ten records from your file are displayed and you are given the option to adjust various settings. The following screenshot is of this preview screen. Under the Settings heading, the default values will be appropriate for creating new accounts if you have formatted your file in the same manner as the one we are using.
    • Under the Default values heading, click on the Show Advanced button to display other settings that can be adjusted. You should change the default country here using the Select a country pull-down menu and possibly even the City/town setting, if you want to standardize this setting to the city or town in which your school or program is located.

    Tip

    You can change the default country by clicking on the Location settings link found under the Location directory in the Site Administration block found on the front page of your site. Even if you have set the default country via the Location settings, you will still need to specify the country when creating new accounts.

  5. Generally, when creating accounts in bulk, you will not need to change any of the other default values unless so desired. Click on the Upload users button once you are finished and the accounts will be created. The following screenshot is of the Upload users preview screen with the Show Advanced menu toggled off:
    Time for action – creating teacher accounts
  6. After clicking on Upload users, the next screen you will see will be a results screen displaying all of the accounts created. Summarized details are presented at the bottom of the screen just above the Continue button. If you receive any errors you may need to go back and correct formatting errors in your CSV file or you may be attempting to create two users with the same username. You will receive an error message that will help you trace the root of your problem. The results of the users with a weak password check, in our case, is zero because we have turned off the password policy in the site policies security settings.
    Time for action – creating teacher accounts
  7. Click on Continue from this screen to return you to the Upload users page. From this point you can click on the Users folder found in the Site Administration block and then on Browse a list of users to view and confirm the existence of the accounts you just created.

What just happened?

You have just created twenty user accounts inside your Moodle site. These users have not yet been assigned any roles. They are simply registered users at this point but that will change shortly when we assign them to teach courses that we'll be creating with the Bulk Course Upload tool.

主站蜘蛛池模板: 临颍县| 江北区| 萝北县| 淮阳县| 海阳市| 定兴县| 朝阳区| 株洲市| 通化市| 乌鲁木齐市| 安西县| 渝北区| 如东县| 噶尔县| 宣恩县| 青海省| 甘洛县| 河西区| 新宁县| 波密县| 蓝山县| 革吉县| 濮阳县| 汉阴县| 常州市| 赣州市| 陕西省| 临夏市| 额尔古纳市| 中山市| 灌阳县| 遂溪县| 舞阳县| 常山县| 鄂州市| 商城县| 集安市| 鹤山市| 利辛县| 霍山县| 珲春市|