So, I'm trying to use the new StudentSubmissions section of the API to search for student submissions in a particular course. When I try using the "Try It!" portion of the resource page, it works fine, but when I run it in my script, I get the following error:
"The caller does not have permission (line 6, file "silo test")"
I have also gotten the error "The requested identity does not exist"
I am a Super Admin on the domain, this is my course that I am the teacher of, and it should be noted that when I do Classroom.Courses.CourseWork.list(deCourse), it works fine and gives me an array of the coursework for the course, but the StudentSubmissions piece keeps erroring out. I know that I can add the userId separately do only look for a particular student, but that doesn't fix it either.
Thoughts?!
function siloTest() {
var nick = { teacherId: "nmarchese@berkeleycarroll.org"}
var courses = Classroom.Courses.list(nick);
var deCourse = courses.courses[5].id;
var late = Classroom.Courses.CourseWork.StudentSubmissions.list(deCourse, "-");
}