GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.53k stars 473 forks source link

Switch between domains - Reseller #1402

Closed coccoinomane closed 1 month ago

coccoinomane commented 3 years ago

Is your feature request related to a problem? Please describe. I manage 20+ Google Workspace domains for my clients. All commands that require specifying the domain (say gam user john@example.com show sendas) work fine, but if I want to execute a command that does not explicitly contain the domain (say gam print aliases), it defaults to my reseller account.

Describe the solution you'd like As a reseller, I would love to have a way to switch between domains, either at the command level (for example, gam print aliases --domain=example.com) or at the environment level (for example: gam switch_to example.com && gam print aliases).

Describe alternatives you've considered I have looked up GAMADV-XTD3 and the gamselect.sh script, but I would rather use vanilla GAM, if possible.

davidsev7 commented 3 years ago

I too would love this ability as our school has several domains for "reasons".

jondthompson commented 2 years ago

Agreed.

tdvaughan commented 1 year ago

I'd love this too - other suggestions such as using multiple oauth files (e.g. https://github.com/GAM-team/GAM/issues/69) haven't worked - e.g. if I try to create a new oauth for another domain, I get "Access blocked: GAM can only be used within its organisation". Unless maybe I'm doing something wrong?

taers232c commented 1 year ago

Advanced Gam handle this quite simply: See: https://github.com/taers232c/GAMADV-XTD3/wiki/gam.cfg#multiple-customers-and-domains https://github.com/taers232c/GAMADV-XTD3/wiki/gam.cfg#multiple-customers-and-domains

Ross

Ross Scroggs @.***

On Nov 16, 2022, at 5:57 AM, tdvaughan @.***> wrote:

I'd love this too - other suggestions such as using multiple oauth files (e.g. #69 https://github.com/GAM-team/GAM/issues/69) haven't worked - e.g. if I try to create a new oauth for another domain, I get "Access blocked: GAM can only be used within its organisation". Unless maybe I'm doing something wrong?

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1402#issuecomment-1317064736, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLZXUOHDPKMABWIVSHTWITR5RANCNFSM5BAICCUA. You are receiving this because you are subscribed to this thread.

jay0lee commented 1 month ago

GAM7 is a merge of GAMADV and standard GAM and solves this. Upgrade and enjoy. Closing this issue now.