Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To upload users tool allows an administrator to perform multiple tasks at once, including but not limited to:

...

course1,type1,role1,group1,enrolperiod1,course2,type2,role2,group2,enrolperiod2 etc.

In the above example, type refers to the role to be used for associated course enrolment. Value 1 is default course role, 2 is legacy Teacher role and 3 is legacy Non-editing Teacher. You can use role field instead to specify roles directly. Use either the role short name or id (numeric names of roles are not supported).

...

You can set the enrolment duration, in days, for each course (enrolperiod1 for course1, enrolperiod2 for course2, etc.).

Info
titleNew in 2.5.6.10

The sign up users for face to face sessions, simply enter the ID of the session using the following headers in the CSV file:

course1,type1,role1,group1,enrolperiod1,course2,type2,role2,group2,enrolperiod2,session1,session2

In the above example, session1 refers to the ID of the first session a user will be signed up for, session 2 to the second session, and so on. The ID of a session is identified by its URL when viewing a session. For example, the unique ID for "http://www.dualcode.com/mod/facetoface/sessions.php?s=139" is 139.

 

Cohort Field

You can add users to cohorts. Cohort ID numbers or non-numeric cohort IDs of existing cohorts must be used (names are not allowed).

...

firstname, lastname, username, email, city, country, lang, timezone, mailformat, maildisplay, maildigest, htmleditor, ajax, autosubscribe ,institution, department, idnumber, skype , msn, aim, yahoo, icq, phone1, phone2, address, url, description, descriptionformat, password, auth, oldusername , deleted, suspended,course1,type1,role1,group1,enrolperiod1,course2,type2,role2,group2,enrolperiod2,
program1,program2,cohort1,cohort2

...