Use the same client_secrets.json file for all of them. To switch between, modify the OAUTHFILE environment variable. So if you're on Linux or Mac try:
export OAUTHFILE=oauth2.txt-domain1.com
gam info domain
(authenticate and the domain1 info prints)
export OAUTHFILE=oauth2.txt-domain2.com
gam info domain
(authenticate and the domain2 info prints)
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/122af722-e489-48d8-9826-d6ceb2f5a11b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Click here to access the IT Service Centre online : IT Service Centre
Click here to access the Self Service Portal : Self Service
Click here to access the online Customer Satisfaction Survey
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp9qpHpms9ac-07gUWUzjRaoErK2Ey_xU6bzndZpvXX9Ag%40mail.gmail.com.
Please consider the environment before printing this e-mail. Rentokil Initial plc registered in England No. 5393279 Registered Office: Riverbank, Meadows Business Park, Blackwater, Camberley, Surrey, GU17 9AB. Information in this message is confidential and is intended solely for the persons to whom it is addressed. If you are not the intended recipient please notify the sender and immediately delete this message from your computer. This system may be monitored or recorded to secure the effective operation of the system and for other lawful purposes.
OAUTHFILE=oauth2.txt-mydomain.com
Click here to access the IT Service Centre online : IT Service Centre
Click here to access the Self Service Portal : Self Service
Click here to access the online Customer Satisfaction Survey
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp9hivWHKtTcLp1QS9EZiR2qzTX7SJpsKh4cDAJhqfFqBw%40mail.gmail.com.
Click here to access the IT Service Centre online : IT Service Centre
Click here to access the Self Service Portal : Self Service
Click here to access the online Customer Satisfaction Survey
Error: unauthorized_client: Unauthorized client or scope in request.
When running an update user command
Any ideas?
Use the same client_secrets.json file for all of them. To switch between, modify the OAUTHFILE environment variable. So if you're on Linux or Mac try:
export OAUTHFILE=oauth2.txt-domain1.com
gam info domain
(authenticate and the domain1 info prints)export OAUTHFILE=oauth2.txt-domain2.com
gam info domain
(authenticate and the domain2 info prints)
On Mar 16, 2015 8:08 AM, "Kit Gillingham" <kit.gil...@rentokil-initial.com> wrote:
Hi Jay,--I'm having the same issue whereby I have various separate domains that I need to manage. In the previous version of GAM we would just change the domain name on the oauth.txt file.Could you let me know how what I need to do to perform this in the new version? Do I need to create separate projects in the developer console for each domain?ThanksKit
On Friday, 27 September 2013 13:02:14 UTC+1, Jay Lee wrote:Hi Kylie,Glad you figured it out. Yes, the oauth2.txt file needs to be revoked and re-created via authentication in order for it to use your new client_secrets.json (and your own personal quota).Note that there is no security risk in sharing the same client_secrets.json file between multiple Google Apps instances. client_secrets.json DOES NOT authenticate you as a Google Apps Admin to Google, it only identifies your application (GAM) to Google for quota tracking purposes.Jay
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.