Search code examples
google-classroomgoogle-workspace

Accessing the creator account or using superadmin is the only way to gather data of courses in Google Classroom API?


Due to the events of the recent COVID-19 pandemic, my school company implemented a Google Classroom infrastructure and i need to gather all the data about access and usage of the platform in order to create reports to the scholar community.

Each unit (individual school) has an account under my domain that created several hundreds of individual courses. The number of units is over 100.

I wrote some code to do the tricks but i need clearence to acess the info of all the courses in the domain.

Is there any other way to access the info of the courses other than using the creator account or superadmin? Like creating a middle clearence account of GSuite that can pull all this data. Superadmin is very sensible.

Thanks in advance!

EDIT: Kind of info i'm trying to access

Classroom.Courses.Announcements.list(id).announcements;
Classroom.Courses.CourseWork.list(id).courseWork;
Classroom.Courses.Students.list(id).students;

Basically everything i can see about students commitment.


Solution

  • Classroom.Courses.Announcements.list

    Course teachers and domain administrators may view all announcements.

    Classroom.Courses.CourseWork.list

    Course teachers and domain administrators may view all course work..

    Classroom.Courses.Students.list

    The documentation does not provide any respective information, but the access conditions are the same.

    To conclude

    Not only admins and course creators have full access to the requested methods, but also all other teachers added as such to a course.

    Thus, you can add any domain user as a teacher to all courses, if this makes your work easier.

    Also students have limited access to course information, however only to published items.