Error 400: redirect_uri_mismatch into GAM installation process

160 views
Skip to first unread message

ICadmin

unread,
Sep 8, 2022, 11:29:41 AM9/8/22
to GAM for Google Workspace
Today I installed Gam 6.25 and in the step for "Select the authorized scopes..." I type "c" (continue), then appear the link https://gam-shortn.appspot.com/xxxxxx and open the browser. At this point in the browser appear un error:

AUTHORIZATION ERROR
Error 400: redirect_uri_mismatch
...

and the process is blocked, because in the administration console the prompt "Enter verification code or browser URL:" is waiting the code that don't appear in the browser!!!
I tryed many times restart from begin, but the result is the same.
How can I resolve?
Tx for gentle reply


Jay Lee

unread,
Sep 8, 2022, 11:32:55 AM9/8/22
to google-ap...@googlegroups.com
This sounds like you chose the wrong option for your client. You should have chosen desktop app, not web application. Delete oauth2service.json and client_secrets.json and run gam create project again.

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/8398a340-ff29-483e-a68b-76b16eb3d7fan%40googlegroups.com.

ICadmin

unread,
Sep 8, 2022, 12:32:40 PM9/8/22
to GAM for Google Workspace
Tx for the fast reply! I tryed to follow your solution and in effect I select a wrong type of application. Then I deleted oauth2service.json and client_secrets.json and run gam create project again and I select correctly "Desktop application" and the process is go at next step: Appear the login for authorization with a long list of service and after I clicked "Approve" then appear:

Authorization error 
Error 400: invalid_request 
Account restricted

and the process stop!

How can resolve?
Tx in advance

Jay Lee

unread,
Sep 8, 2022, 12:41:46 PM9/8/22
to google-ap...@googlegroups.com
Make sure this setting is enabled for your gam user:


Jay

ICadmin

unread,
Sep 9, 2022, 4:27:55 AM9/9/22
to GAM for Google Workspace
Tx for reply.
I controlled the list of services (follow the link) enabled for administrator account declared in the procedure for complete GAM configuration and I enabled GROUPS, but happen the same situation and the same error! WHat are the services that I have to eneable for fix my issue? TX

ICadmin

unread,
Sep 9, 2022, 4:32:24 AM9/9/22
to GAM for Google Workspace
... excuse me, but in this step of GAM configuration is all ok? Have I to do some changes?

Clipboard01.jpg

ICadmin

unread,
Sep 9, 2022, 6:59:33 AM9/9/22
to GAM for Google Workspace
Tx for all your contributions, but I resolved searching and reading all old post in this group for reply at old help requests for similar issue.
First of all, there is a command in GAM for testing enabled/dasbled API scope per user:  gam user <email> check serviceaccount
Instead, for resolve issue above,  the fix was to enable "Access to additional services without individual control" under Additional Google services for the OU that the GAM project is run from.
Now it's all OK!!!

Niclas Hansson

unread,
Sep 12, 2022, 4:49:16 AM9/12/22
to GAM for Google Workspace
I had the exact same problem on one of our domains. Checked the "Access to additional services without individual control" setting and it was enabled. The solution for me was to disable the setting and then enable it again.

Kim Nilsson

unread,
Sep 13, 2022, 3:45:16 AM9/13/22
to GAM for Google Workspace
Yeah, sadly, Google still has many unknown services which require that setting to be enabled.
It's also a domain wide setting, so it can't be enabled only for admins, or staff in an education domain.
Reply all
Reply to author
Forward
0 new messages