The cohort-to-course binding file lets you add/remove cohort-based enrolment methods to courses.
| Field | Value | Default |
|---|---|---|
| cmd | 'add' or 'del' | add |
| cohort(*) | mixed | - |
| course(*) | mixed | - |
| role(*) | mixed | - |
| makegroup | mixed | 0 |
(*) mandatory fields (under conditions).
A command to run on the cohort/course binding. It can be:
The cohort identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.
The course identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.
The role identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.
If the value is 1 the group will be created automatically, based on the cohort name.
Example of a binding file:
cohort;course;role;group COH001;COURSE1;student;1 COH001T;COURSE1;editingteacher;1 COH002;COURSE2;student;1 COH002T;COURSE2;editingteacher;1