GAM with Service Account

1,736 views
Skip to first unread message

Derek A.

unread,
Sep 18, 2018, 3:46:30 PM9/18/18
to GAM for G Suite
Hey Guys, 

I have created the two necessary files:

client_secrets.json
oauth2service.json

I have Authorized the Service accounts client ID in the Admin Console for the required scopes. The service account has had domain wide delegation enabled. 

Everytime I run the command: gam oauth create 

I get asked: "What is your G Suite admin email address?"

Which ends up creating the oauth2.txt under my account and not as the service account.

Any idea why I cannot get the service account to be used instead of my Credentials?

Ross Scroggs

unread,
Sep 18, 2018, 3:49:38 PM9/18/18
to google-ap...@googlegroups.com
Derek,

Do: gam user us...@domain.com check serviceaccount
Substitute a real address for us...@domain.com
Follow directions

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" 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 https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/5cdd7e53-8334-48de-a1da-f173ae898775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Derek A.

unread,
Sep 18, 2018, 4:13:27 PM9/18/18
to GAM for G Suite
Hey Ross, 

I really appreciate the fast reply. So I just did that, and It brought me back into the same loop.

Select scopes, enter 'c' continue with authorization. What is your G Suite admin email address?

Following these instructions for setup. 

Derek A.

unread,
Sep 18, 2018, 5:37:05 PM9/18/18
to GAM for G Suite
Thanks for the call Ross!

Seems there was some confusion on my part regarding what the Service Accounts were able to do. I got everything all setup now. 

On Tuesday, September 18, 2018 at 12:49:38 PM UTC-7, Ross Scroggs wrote:
Derek,

Do: gam user us...@domain.com check serviceaccount
Substitute a real address for us...@domain.com
Follow directions

Ross

On Tue, Sep 18, 2018 at 12:46 PM Derek A. <dal...@earls.ca> wrote:
Hey Guys, 

I have created the two necessary files:

client_secrets.json
oauth2service.json

I have Authorized the Service accounts client ID in the Admin Console for the required scopes. The service account has had domain wide delegation enabled. 

Everytime I run the command: gam oauth create 

I get asked: "What is your G Suite admin email address?"

Which ends up creating the oauth2.txt under my account and not as the service account.

Any idea why I cannot get the service account to be used instead of my Credentials?

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages