taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
723 stars 86 forks source link

[Improvement] Add additional error message clarification and optional parameter to Course.DirectAddUser function for External members #385

Closed stephengale801 closed 3 months ago

stephengale801 commented 11 months ago

Example: Internal Domain: example.com External Domain: example.org

Command: gam course 123456789 add teacher newteacher@example.org Result: Course: 123456789, Teacher:newteacher@example.org Add Failed: 403: permissionDenied - @CannotDirectAddUser Unable to directly add the user to the course. Please check that the user account exists and is within the course admin's domain.

Recommend directing users to the "Classroom Invitations Wiki" page, as this is typically what they will want to do. Failure to include this reference in the error can be interpreted as the functionality cannot be accomplished via API.

Additionally, add an options parameter (something like [external], [retry], or [invite] ) to catch the error and retry w/o the accept invitation portion OR as an alias function of the aforementioned Invitation function to prevent excessive API calls which would return errors for each call when used as a part of a CSV with external participants.

taers232c commented 11 months ago

Send me a Meet/Zoom invitation.

Ross

Ross Scroggs @.***

On Nov 2, 2023, at 9:30 AM, stephengale801 @.***> wrote:

Example: Internal Domain: example.com External Domain: example.org

Command: gam course 123456789 add teacher @. Result: Course: 123456789, @. Add Failed: 403: permissionDenied - @CannotDirectAddUser Unable to directly add the user to the course. Please check that the user account exists and is within the course admin's domain.

Recommend directing users to the "Classroom Invitations Wiki" page, as this is typically what they will want to do. Failure to include this reference in the error can be interpreted as the functionality cannot be accomplished via API.

Additionally, add an options parameter (something like [external], [retry], or [invite] ) to catch the error and retry w/o the accept invitation portion OR as an alias function of the aforementioned Invitation function to prevent excessive API calls which would return errors for each call when used as a part of a CSV with external participants.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/385, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3IVJAPMFVZHKPRKCLYCPDAZAVCNFSM6AAAAAA63FPSAKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TINRSGMZTIMQ. You are receiving this because you are subscribed to this thread.

stephengale801 commented 11 months ago

Hey Ross, https://meet.google.com/rnu-uycf-opm

Thanks again. Stephen Gale

On Thu, Nov 2, 2023 at 10:56 AM Ross Scroggs @.***> wrote:

Send me a Meet/Zoom invitation.

Ross

Ross Scroggs @.***

On Nov 2, 2023, at 9:30 AM, stephengale801 @.***> wrote:

Example: Internal Domain: example.com External Domain: example.org

Command: gam course 123456789 add teacher @. Result: Course: 123456789, @. Add Failed: 403: permissionDenied - @CannotDirectAddUser Unable to directly add the user to the course. Please check that the user account exists and is within the course admin's domain.

Recommend directing users to the "Classroom Invitations Wiki" page, as this is typically what they will want to do. Failure to include this reference in the error can be interpreted as the functionality cannot be accomplished via API.

Additionally, add an options parameter (something like [external], [retry], or [invite] ) to catch the error and retry w/o the accept invitation portion OR as an alias function of the aforementioned Invitation function to prevent excessive API calls which would return errors for each call when used as a part of a CSV with external participants.

— Reply to this email directly, view it on GitHub < https://github.com/taers232c/GAMADV-XTD3/issues/385>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL3IVJAPMFVZHKPRKCLYCPDAZAVCNFSM6AAAAAA63FPSAKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TINRSGMZTIMQ>.

You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/385#issuecomment-1791116018, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADNMZ5IKWYXYWMD66IT6Q4DYCPGCBAVCNFSM6AAAAAA63FPSAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJRGEYTMMBRHA . You are receiving this because you authored the thread.Message ID: @.***>

taers232c commented 11 months ago

6.65.06

Improved error message when trying to add external students/teachers to a course.

gam courses 544906261666 add student @. Course: 544906261666, Add 1 Student Course: 544906261666, Student: @., Add Failed: 403: permissionDenied - @CannotDirectAddUser Unable to directly add the user to the course. Please check\ that the user account exists and is within the course admin's domain. Add external user with: gam user @.*** create classroominvitation courses 54490626166\ 6 role Student


Ross Scroggs @.***

On Nov 2, 2023, at 9:30 AM, stephengale801 @.***> wrote:

Example: Internal Domain: example.com External Domain: example.org

Command: gam course 123456789 add teacher @. Result: Course: 123456789, @. Add Failed: 403: permissionDenied - @CannotDirectAddUser Unable to directly add the user to the course. Please check that the user account exists and is within the course admin's domain.

Recommend directing users to the "Classroom Invitations Wiki" page, as this is typically what they will want to do. Failure to include this reference in the error can be interpreted as the functionality cannot be accomplished via API.

Additionally, add an options parameter (something like [external], [retry], or [invite] ) to catch the error and retry w/o the accept invitation portion OR as an alias function of the aforementioned Invitation function to prevent excessive API calls which would return errors for each call when used as a part of a CSV with external participants.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/385, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL3IVJAPMFVZHKPRKCLYCPDAZAVCNFSM6AAAAAA63FPSAKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TINRSGMZTIMQ. You are receiving this because you are subscribed to this thread.