php-samples icon indicating copy to clipboard operation
php-samples copied to clipboard

The scope for this snippet is wrong

Open bertrandgorge opened this issue 3 years ago • 0 comments

The snippet shown in https://developers.google.com/classroom/guides/manage-users#php is wrong : the scope should be https://www.googleapis.com/auth/classroom.rosters and not https://www.googleapis.com/auth/classroom.profile.photos

NB : In the Python version of the same snippet, the scope is not shown at all...

https://github.com/googleworkspace/php-samples/blob/77b210b0e5c155bc8b6f3b2aa4bc72151a0c42cb/classroom/snippets/src/ClassroomAddTeacher.php#L31

bertrandgorge avatar Jul 07 '22 10:07 bertrandgorge