taers232c / GAMADV-XTD3

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

formatjson dropping userEmail field? #248

Closed okay-scam closed 2 years ago

okay-scam commented 2 years ago
PS > gam show classroominvitations course 91554867539 role student
Course: money bags benny (91554867539), Show 1 Classroom Student Invitation
  id: OTE1NTQ4Njc1Mzl8MTA3NjA5NDMxMjAwMTU2OTU1MzY3
    role: STUDENT
    userid: 107609431200156955367
    userEmail: student.samn@mckinnonsc.vic.edu.au

PS > gam show classroominvitations course 91554867539 role student formatjson
[{"courseId": "91554867539", "id": "OTE1NTQ4Njc1Mzl8MTA3NjA5NDMxMjAwMTU2OTU1MzY3", "role": "STUDENT", "userId": "107609431200156955367"}]

First command contains userEmail, when appending formatjson - it is dropped.

taers232c commented 2 years ago

userEmail isn't dropped, formatjson is just showing the data returned by the API which only includes the courseId and userId

I could add the userEmail and courseName to the JSON data

okay-scam commented 2 years ago

Ah thanks! For my own clarity does that mean that without formatjson it's actually performing multiple api calls? One for the invitations then one for each userid to pull their email?

taers232c commented 2 years ago

Sam,

Yes. Send me a Meet/Zoom invitation

Ross

ross.scroggs @ gmail.com

@.***

On Mar 2, 2022, at 9:12 PM, Sam @.***> wrote:

Does that mean that without formatjson it's actually performing multiple api calls? One for the invitations then one for each userid to pull their email?

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/248#issuecomment-1057673218, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL34JWEO6FOZWVRQ7F3U6BC4ZANCNFSM5PZLWF5Q. 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.

okay-scam commented 2 years ago

Will do tomorrow morning! About to head off for the day, but keen have a look at the quickmove cros device issue I posted earlier too.

taers232c commented 2 years ago

I'm in California (PST) and can be available from 7-8 and then 9-1

taers232c commented 2 years ago

If you do print classroominvitations you'll get a CSV file that will be easier to process with a script if that's where you're headed.