taers232c / GAMADV-XTD3

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

gam whatis emailaddress does not display correct error when domain-wide delegation is not authorized #223

Closed cdwcriver closed 2 years ago

cdwcriver commented 2 years ago

When domain-wide delegation is authorized, whatis provides this output for a non-existent address:

gam whatis doesnotexist@domain.com noinfo
Email Address: doesnotexist@domain.com, Does not exist

Running the same command when domain-wide delegation is not authorized results in this output instead:

gam whatis doesnotexist@domain.com noinfo
User: admin@domain.com, Service not applicable/Does not exist

This makes it difficult to determine if there are any accounts that don't exist in a csv of addresses. For example, this command will result in a file that only contains the admin's email address on each line, rather than the desired missing addresses: gam redirect stdout null redirect stderr ./missing.csv multiprocess csv ./accounts.csv gam whatis ~email noinfo

taers232c commented 2 years ago

Send me a Meet/Zoom invitation.

Ross

ross.scroggs @ gamil.com

On Fri, Dec 3, 2021 at 12:05 PM aitcriver @.***> wrote:

When domain-wide delegation is authorized, whatis provides this output for a non-existent address:

gam whatis @. noinfo Email Address: @., Does not exist

Running the same command when domain-wide delegation results in this output instead:

gam whatis @. noinfo User: @., Service not applicable/Does not exist

This makes it difficult to determine if there are any accounts that don't exist in a csv of addresses. For example, this command will result in a file that only contains the admin's email address on each line, rather than the desired missing addresses: gam redirect stdout null redirect stderr ./missing.csv multiprocess csv ./accounts.csv gam whatis ~email noinfo

— 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/223, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZCYR5ARJG5OY2CPADUPEPHTANCNFSM5JKQVIKQ . 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.

-- Ross Scroggs @.***

cdwcriver commented 2 years ago

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

taers232c commented 2 years ago

Chris,

Will do.

Ross

@.***

On Dec 10, 2021, at 6:57 AM, aitcriver @.***> wrote:

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991040959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4AIXIJU7GD3CHCWYLUQIIOJANCNFSM5JKQVIKQ. 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.

taers232c commented 2 years ago

Chris,

As the first requester tou have naming rights I'm thinking noxxxcheck, what should xxx be?

Ross

@.***

On Dec 10, 2021, at 6:57 AM, aitcriver @.***> wrote:

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991040959, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4AIXIJU7GD3CHCWYLUQIIOJANCNFSM5JKQVIKQ. 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.

cdwcriver commented 2 years ago

lol. I think maybe something like "noinvitecheck" seems to make sense.

Chris

On Fri, 10 Dec 2021 at 11:11, Ross Scroggs @.***> wrote:

Chris,

As the first requester tou have naming rights I'm thinking noxxxcheck, what should xxx be?

Ross

@.***

On Dec 10, 2021, at 6:57 AM, aitcriver @.***> wrote:

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991040959>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL4AIXIJU7GD3CHCWYLUQIIOJANCNFSM5JKQVIKQ . 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 authored the thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991100383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLBVLP7VX7I3WDLKIOIFADUQIRDHANCNFSM5JKQVIKQ . 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.

taers232c commented 2 years ago

See: https://github.com/taers232c/GAMADV-XTD3/wiki/GamUpdates

@.***

On Dec 10, 2021, at 8:18 AM, aitcriver @.***> wrote:

lol. I think maybe something like "noinvitecheck" seems to make sense.

Chris

On Fri, 10 Dec 2021 at 11:11, Ross Scroggs @.***> wrote:

Chris,

As the first requester tou have naming rights I'm thinking noxxxcheck, what should xxx be?

Ross

@.***

On Dec 10, 2021, at 6:57 AM, aitcriver @.***> wrote:

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub < https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991040959>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL4AIXIJU7GD3CHCWYLUQIIOJANCNFSM5JKQVIKQ . 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 authored the thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991100383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLBVLP7VX7I3WDLKIOIFADUQIRDHANCNFSM5JKQVIKQ . 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. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991106065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4FBPM2RFLGURUPI6LUQIR57ANCNFSM5JKQVIKQ. 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.

cdwcriver commented 2 years ago

Looks like that works great! Thanks!

Chris

On Fri, 10 Dec 2021 at 13:36, Ross Scroggs @.***> wrote:

See: https://github.com/taers232c/GAMADV-XTD3/wiki/GamUpdates

@.***

On Dec 10, 2021, at 8:18 AM, aitcriver @.***> wrote:

lol. I think maybe something like "noinvitecheck" seems to make sense.

Chris

On Fri, 10 Dec 2021 at 11:11, Ross Scroggs @.***> wrote:

Chris,

As the first requester tou have naming rights I'm thinking noxxxcheck, what should xxx be?

Ross

@.***

On Dec 10, 2021, at 6:57 AM, aitcriver @.***> wrote:

The fix you implemented works great! However, you mentioned maybe adding a parameter to skip checking for user invitations. Could you implement that as well? The User Invitations API has a hard quota limit of only 60 requests per minute, Google doesn't currently allow requesting that quota limit to be increased beyond that, so it's easy to run into that limit when running "whatis" against a large number of addresses.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <

https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991040959 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ACCTYL4AIXIJU7GD3CHCWYLUQIIOJANCNFSM5JKQVIKQ

. 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 authored the thread. Reply to this email directly, view it on GitHub < https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991100383 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AHLBVLP7VX7I3WDLKIOIFADUQIRDHANCNFSM5JKQVIKQ

. 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. Reply to this email directly, view it on GitHub < https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991106065>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL4FBPM2RFLGURUPI6LUQIR57ANCNFSM5JKQVIKQ . 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 authored the thread. Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/223#issuecomment-991204139, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLBVLOP4R5FT3ENGSO7STLUQJCDFANCNFSM5JKQVIKQ . 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.