# Gmail Oauth Integration

**URL:** <https://discuss.google.dev/t/gmail-oauth-integration/179980>\
**Category:** Integration Services\
**Tags:** application-integration\
**Created:** [January 27, 2025, 7:52am UTC](https://discuss.google.dev/t/gmail-oauth-integration/179980 "2025-01-27T07:52:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattipler](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/mattipler/32/1857_2.png) [@mattipler](https://discuss.google.dev/u/mattipler)\
**Post date:** [January 27, 2025, 7:52am UTC](https://discuss.google.dev/t/gmail-oauth-integration/179980/1 "2025-01-27T07:52:15Z")

</div>

I’m trying to configure a Genesys Cloud CX \<=\> Gmail integration so that a Genesys queue can send / receive (IMAP / SMTP) email through a Gmail mailbox.

What I’ve done…

I’ve configured a new project in my Gsuite tenant: Enabled the Gmail API, configured consent settings (in testing mode with test user added, gmail API scopes added), created an OAuth 2.0 Client ID = web application / set the authorised redirect URI to [https://apps.mypurecloud.com/oauth/callback](https://apps.mypurecloud.com/oauth/callback) and noted the client ID and secret.

Within Genesys, I’ve created a new SMTP integration: configured the SMTP server properties (host = [smtp.gmail.com](http://smtp.gmail.com), smtp port = 587 STARTTLS = True, Scopes = Blank). Set the credentials to Oauth2.0 (Credential Flow), client ID, client secret, access token endpoint = [https://oauth2.googleapis.com/token,](https://oauth2.googleapis.com/token,) set the scope to [https://mail.google.com/](https://mail.google.com/) and then entered my test gmail account username.

When I enable the integration within Genesys I’m then getting the following error = ‘Request for OAuth Bearer Tokens failed. Please check your auth server and the integration settings. Error = unsupported\_grant\_type’. It seems like Gsuite is rejecting the connection.

My hand is being forced to use Oauth as I believe basic authentication is no longer supported by Google?

---

<div class="post-metadata">

**Author:** ![AlexET](https://d3byx8b92xw3lq.cloudfront.net/user_avatar/discuss.google.dev/alexet/32/159502_2.png) [@AlexET](https://discuss.google.dev/u/AlexET)\
**Post date:** [January 29, 2025, 6:40pm UTC](https://discuss.google.dev/t/gmail-oauth-integration/179980/2 "2025-01-29T18:40:43Z")

</div>

Thank you for your question @mattipler ! This forum focuses on topics related to [Application Integration](https://cloud.google.com/application-integration?hl=en), the integration Platform as a Service (iPaaS) to automate business processes by connecting any application with point-and-click configurations. If your query is connected to this product, we encourage you to provide additional details so that we can offer more tailored guidance.

If your question pertains to a different Google Cloud product, we recommend exploring [other forums within the Google Cloud Community](https://www.googlecloudcommunity.com/gc/Cloud-Forums/ct-p/cloud-forums) to find the most relevant space for your inquiry.

Let us know how we can assist further!
