Testing Student View functionality I realised that the fake user which is created when you get into that functionality is never removed from the enrollment list. Is there a way to do that?
This is what I've seen. I have a course with an Instructor and a Learner enrolled. When I ask for the enrollment list this is what I get:
{
"id": "https://54.154.247.11/api/lti/courses/5/names_and_roles",
"context": {
"id": "5bb7e26c3331f190b9f69372c554ff6a8f13dd98",
"label": "TestUser",
"title": "PR-1532-CanvasMay-TestOrg-TestUser"
},
"members": [
{
"status": "Active",
"name": "Aitor Cuesta Instructor",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Instructor",
"email": "aitor.cuesta+canvas-instructor@betterexaminations.com",
"user_id": "3239c4e4-4427-46dd-be24-aa8c9f7f4cc5",
"lti11_legacy_user_id": "9abc8eec37495243b29f65b117fe199901d8a353",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor"
]
},
{
"status": "Active",
"name": "Aitor Cuesta Student",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Student",
"email": "aitor.cuesta+canvas-student@betterexaminations.com",
"user_id": "ca742292-cc3d-4ccd-894a-c7ac0175cdf1",
"lti11_legacy_user_id": "9491f48302495173ee15bb31ef21321b192a3372",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"
]
}
]
}
As you see this is working as expected.
Now my Instructor goes into the Student View mode. I ask for the enrollment list at this point and this is what I get:
{
"id": "https://54.154.247.11/api/lti/courses/5/names_and_roles",
"context": {
"id": "5bb7e26c3331f190b9f69372c554ff6a8f13dd98",
"label": "TestUser",
"title": "PR-1532-CanvasMay-TestOrg-TestUser"
},
"members": [
{
"status": "Active",
"name": "Aitor Cuesta Instructor",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Instructor",
"email": "aitor.cuesta+canvas-instructor@betterexaminations.com",
"user_id": "3239c4e4-4427-46dd-be24-aa8c9f7f4cc5",
"lti11_legacy_user_id": "9abc8eec37495243b29f65b117fe199901d8a353",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor"
]
},
{
"status": "Active",
"name": "Aitor Cuesta Student",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Student",
"email": "aitor.cuesta+canvas-student@betterexaminations.com",
"user_id": "ca742292-cc3d-4ccd-894a-c7ac0175cdf1",
"lti11_legacy_user_id": "9491f48302495173ee15bb31ef21321b192a3372",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"
]
},
{
"status": "Active",
"name": "Test Student",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Test",
"family_name": "Student",
"user_id": "675c9783-c58e-4d7c-90f5-7826e797cf88",
"lti11_legacy_user_id": "a3777fbd814fb647e7b5f6aec562c612d279f006",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"
]
}
]
}
A Test Student fake user is created and added to the enrollment list. This is fine for me.
Now I leave the Student View mode and ask again for the enrollment list:
{
"id": "https://54.154.247.11/api/lti/courses/5/names_and_roles",
"context": {
"id": "5bb7e26c3331f190b9f69372c554ff6a8f13dd98",
"label": "TestUser",
"title": "PR-1532-CanvasMay-TestOrg-TestUser"
},
"members": [
{
"status": "Active",
"name": "Aitor Cuesta Instructor",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Instructor",
"email": "aitor.cuesta+canvas-instructor@betterexaminations.com",
"user_id": "3239c4e4-4427-46dd-be24-aa8c9f7f4cc5",
"lti11_legacy_user_id": "9abc8eec37495243b29f65b117fe199901d8a353",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Instructor"
]
},
{
"status": "Active",
"name": "Aitor Cuesta Student",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Aitor Cuesta",
"family_name": "Student",
"email": "aitor.cuesta+canvas-student@betterexaminations.com",
"user_id": "ca742292-cc3d-4ccd-894a-c7ac0175cdf1",
"lti11_legacy_user_id": "9491f48302495173ee15bb31ef21321b192a3372",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"
]
},
{
"status": "Active",
"name": "Test Student",
"picture": "https://54.154.247.11/images/messages/avatar-50.png",
"given_name": "Test",
"family_name": "Student",
"user_id": "675c9783-c58e-4d7c-90f5-7826e797cf88",
"lti11_legacy_user_id": "a3777fbd814fb647e7b5f6aec562c612d279f006",
"roles": [
"http://purl.imsglobal.org/vocab/lis/v2/membership#Learner"
]
}
]
}
If you realise the fake Test Student is still there, despite my Instructor is no longer in the Student View mode.
What do I do to reset that list to the real one?
Thanks in advance