From elswhere in stack exchange, I have found references to these code snippets working successfully, but fail when I run them.
Two sets of code below both of which result in an error - 'the requested entity was not found'. This is odd because if I change "remove" to "create", the function succeeds, so I am assuming all scopes are in place.
function removeStudents() {
//Classroom.Courses.Students.remove({
// userId: "[email protected]",
//}, 727305413955);
var ClassroomID=727305413955
var TeacherslistID="[email protected]";
Classroom.Courses.Teachers.remove({"userId":TeacherslistID},ClassroomID)
}
The error lists this line at fault is -- Classroom.Courses.Students.remove
Any help is appreciated
I was expecting that the student or Tutor would be removed from the classroom. I have tried this where the student has accepted the invitation and also whilst they remain in the invited state - both with the same error. For my use case I wish to remove students who are invited and not yet accepted.