taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
714 stars 87 forks source link

Error when trying to remove user from Classroom #242

Closed astrugatch closed 2 years ago

astrugatch commented 2 years ago

Trying to remove a student from a classroom. Getting the following error:

Remove Failed: The caller does not have permission

Running as a batch for some of my team to use, but also fails when typed out manually:

@ECHO OFF

SET /P googleclass= What Classrom ID:
SET /P Student= What Student:

gam course %googleclass% remove students %Student%

GAM OAuth user is a SuperAdmin and a smattering of other commands I tested work without issue.

taers232c commented 2 years ago

Go here: https://github.com/taers232c/GAMADV-XTD3/wiki/Authorization#introduction

Verify that Classroom API is enabled.

https://github.com/taers232c/GAMADV-XTD3/wiki/Authorization#version-5-update Ross

On Tue, Feb 15, 2022 at 7:28 AM astrugatch @.***> wrote:

Trying to remove a student from a classroom. Getting the following error:

Remove Failed: The caller does not have permission

Running as a batch for some of my team to use, but also fails when typed out manually:

@ECHO OFF

SET /P googleclass= What Classrom ID: SET /P Student= What Student:

gam course %googleclass% remove students %Student%

GAM OAuth user is a SuperAdmin and a smattering of other commands I tested work without issue.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLYMUMJEXIECVUVJZMDU3JWJBANCNFSM5OO3XEDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Ross Scroggs @.***

astrugatch commented 2 years ago

That is already enabled. Just confirmed. Our install was working previously this is a new hurdle.

I've also upgraded to the latest version (didn't realize how old my install was originally) and ran through the upgrade process and am still seeing the issue.

taers232c commented 2 years ago

Send me a Meet/Zoom invitation.

ross.scroggs @ gmail.com

astrugatch commented 2 years ago

Sent

taers232c commented 2 years ago

Where/what did yuu send?

On Tue, Feb 15, 2022 at 8:06 AM astrugatch @.***> wrote:

Sent

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/242#issuecomment-1040462468, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL2VW3SOGIRGYOTA7U3U3J2XTANCNFSM5OO3XEDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Ross Scroggs @.***

astrugatch commented 2 years ago

Added you in the meet, but sounds like you didn't get it from that. I just sent the

astrugatch commented 2 years ago

Looks like the error is related to the new "Unenrollment Permissions" feature in Google Admin. If this is set allow both students and teachers to remove students from classrooms the API and GAM work as expected. If it is set to teachers only the API and GAM fail. I have a ticket open with google, as the super admin should obviously be able to do this regardless.