Creating fake users and enrolling them into a course
In order to do some experiments with the dynamic quiz, I created some fake users and enrolled them in a course. Additionally, since one of the things that I would like the dynamic quiz to exploit is knowledge of what program of study these users are in I augments the user's custom data with details of what program they are in.
The initial version of the program is create-fake-users-in-course.py Download create-fake-users-in-course.py it can also be found at https://github.com/gqmaguirejr/Canvas-tools Links to an external site..
The result is a course with a set of fake users as can be see in the list of user's in this course:
Examples of fake program data are:
custom data for user Ann FakeStudent is {'data': {'programs': [{'code': 'CINTE', 'name': 'Degree Programme in Information and Communication Technology', 'start': 2016}]}}
custom data for user Bertil FakeStudent is {'data': {'programs': [{'code': 'CDATE', 'name': 'Degree Programme in Computer Science and Engineering', 'start': 2016}]}}
custom data for user Cenric FakeStudent is {'data': {'programs': [{'code': 'CINTE', 'name': 'Degree Programme in Information and Communication Technology', 'start': 2016}]}}
custom data for user David FakeStudent is {'data': {'programs': [{'code': 'CINTE', 'name': 'Degree Programme in Information and Communication Technology', 'start': 2016}]}}
custom data for user Ellen FakeStudent is {'data': {'programs': [{'code': 'CDATE', 'name': 'Degree Programme in Computer Science and Engineering', 'start': 2016}]}}
custom data for user Fran FakeStudent is {'data': {'programs': [{'code': 'TEBSM', 'name': "Master's Programme, Embedded Systems, 120 credits", 'start': 2016}]}}
custom data for user Gordon FakeStudent is {'data': {'programs': [{'code': 'CDATE', 'name': 'Degree Programme in Computer Science and Engineering', 'start': 2016}]}}
custom data for user Håkan FakeStudent is {'data': {'programs': [{'code': 'TCOMM', 'name': "Master's Programme, Communication Systems, 120 credits", 'start': 2016}]}}
custom data for user Ibǘy FakeStudent is {'data': {'programs': [{'code': 'CELTE', 'name': 'Degree Programme in Electrical Engineering', 'start': 2016}]}}
custom data for user James FakeStudent is {'data': {'programs': [{'code': 'TIVNM', 'name': "Master's Programme, ICT Innovation, 120 credits", 'start': 2016}]}}
Note that the English names of the programs for each of the program codes are actually correct and based on the data from the Kurs- och programplanering (KOPPS) system - the authoritiative source for course related data at KTH.
There are some postings in the Canvas Community about the usefulness of knowing which program a student is in: Using custom data to store the student's major (this is what the program of student is called in US universities) https://community.canvaslms.com/thread/5951 Links to an external site. Specifically the posting by Kenneth Mayer on Nov 22, 2017 5:31 PM.
Another usage is reporting data for cohorts (such as by school, major/program, ...), see https://community.canvaslms.com/thread/22750-is-there-a-way-to-include-metadata-for-people-in-canvas-for-outcome-reporting Links to an external site.