Updating Gam oauth2 scopes

80 views
Skip to first unread message

Alexandre Damade

unread,
Mar 1, 2023, 6:45:17 PM3/1/23
to GAM for Google Workspace
hello there,

I am trying to implement a new function in one of my script that would be:

gam user <user_email> signout

but am getting ERROR403 : Not authorized to access this ressource API.

My understanding that I just needed to go to my google workspace admin > Security > API Controls > Domain-Wide Delegation and add there the API client with the scope 

Can anyone could help me validate that process please? cause even after adding that scope i am still getting that error 403. For info, gam is installed on a windows server for us

Thanks,

Jay Lee

unread,
Mar 1, 2023, 6:47:41 PM3/1/23
to google-ap...@googlegroups.com
No, just run:

gam oauth revoke
gam oauth create

And choose the right scopes this time.

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/76ccb843-e4c9-4508-8e96-577b27eedff5n%40googlegroups.com.

Alexandre D

unread,
Mar 1, 2023, 6:55:40 PM3/1/23
to GAM for Google Workspace
thank you very much Jay. Is there a way for me to confirm from the gam command the client ID and the actual oauth scope being applied ?

Jay Lee

unread,
Mar 1, 2023, 8:26:32 PM3/1/23
to google-ap...@googlegroups.com

Alexandre Damade

unread,
Mar 1, 2023, 8:28:58 PM3/1/23
to google-ap...@googlegroups.com
Thank you so much Jay, have a good one :) 

You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/BFOZMzwTJws/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BVVBp8CqfQr6nNWwrdSDKJS%3DAVX%3D9Z%3DTXAz0RKsGkby1Yi2og%40mail.gmail.com.


--
ALEXANDRE DAMADE
Associate Site Reliability Engineer | BLACKBIRD INTERACTIVE INC.


Reply all
Reply to author
Forward
0 new messages