Table des matières

Tool sync: Cohort-to-course binding file format

Introduction

The cohort-to-course binding file lets you add/remove cohort-based enrolment methods to courses.

The file

Field Value Default
cmd 'add' or 'del' add
cohort(*) mixed -
course(*) mixed -
role(*) mixed -
makegroupmixed 0

(*) mandatory fields (under conditions).

Fields

cmd

A command to run on the cohort/course binding. It can be:

cohort

The cohort identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.

course

The course identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.

role

The role identifier, according to the definition in the general settings of the 'cohorts' section of the synchronisation tool.

group

If the value is 1 the group will be created automatically, based on the cohort name.

File examples

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

Back to the component index - Back to catalogue