Redirect_uri_mismatch when connecting to Google Workspace Gmail

Hey there.

We are trying to connect to our Google Workspace. I know that there are several posts out there which all have the same issue and they always get it running by the description of samliew.

We followed everything by the book like samliew described here:

But in our case it just won’t work and I don’t know what to do next. We still get the error

Error 400: redirect_uri_mismatch

You cannot sign in to this app because it does not comply with Google’s OAuth 2.0 guidelines.

If you are the app developer, register the redirect URI in the Google Cloud Console.

Details:
redirect_uri=https://www.make.com/oauth/cb/google-email flowName=GeneralOAuthFlow

These are our added authorized redirect URIs:

I even added the one from the Error but no luck.

What am I missing?

Does the project need to be “Published” or can it also be in “Testing”?

Greetings,

Michael

Hello,

Why is your point about using custom OAuth if you are using Google Workspace?

It is mandatory for personal Gmail accounts.

Regarding your question about testing vs. published:

Testing: If you keep your project in the Testing status, you will be required to reauthorize your connection in Make every week. To avoid weekly reauthorization, update the project status to In production.

In production: If you update your project to the In production status, you will not be required to reauthorize the connection weekly. To update your project’s status, go to the Google Auth Platform, the Audience section, and click Publish app.

Source: Connect to Google services using a custom OAuth client - Help Center

What do you mean exactly? We followed the documentation for Google Workspace Admins and there the article says:

In order to use OAuth2 with your Google apps, you need to create your own project and a custom OAuth client in Google Cloud Console. This is useful for connecting restricted Google services, like Google Drive or Gmail, to Make.

The following procedure is intended for:

  • Personal use (gmail.com und google.com users)

  • Organizational use (Internal use within a business or other organizationGoogle Workspace (formerly GSuite) users that prefer to use a custom OAuth client)

So we presumed that this is the way to connect to our Google Workspace…

That’s the key- prefer :slight_smile:

If you don’t have any extra security policies requiring you to use only custom apps internally- as Workspace users you can use modules out-of-the-box with Make.com Google Connection.

Just add connection name, click “Sign in with Google”, follow oAuth flow and… you should be good to go.

In case of any problems- fell free to ask. If you will solve your problem- mark solution- it will help others.

Have a nice day!

1 Like

Welcome to the Make Community!

Those instructions are already outdated! Try searching for a later post!

Hope this helps! Let me know if there are any further questions or issues.

@samliew

1 Like

It was a mistake on our part. We thought we could use Google Workspace groups in the same way as personal Google users. But apparently that doesn’t work or isn’t supported. Thank you for the help anyway.

1 Like