Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Genesys Cloud CX | Gmail Integration With OAuth

    Posted 14 days ago

    Hey Guys, 

    I'm trying to configure a Genesys <=> Gmail integration so that a Genesys queue can send / receive email through a Gmail mailbox. I can't find any concise Genesys documentation detailing how to do this. 

    What I've done... 

    1. 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 (I'm assuming this is correct) and noted the client ID and secret. 
    2. Within Genesys, I've created a new SMTP integration: configured the SMTP server properties (host = 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 and then entered my test gmail account username. 

    When I enable the integration 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'. 

    Fumbling around a little in the dark here as I can't find any Genesys documentation relating to how to accomplish this. Any pointers greatly appreciated. 

    Cheers, guys. 


    #API/Integrations

    ------------------------------
    Matthew Tipler
    ------------------------------


  • 2.  RE: Genesys Cloud CX | Gmail Integration With OAuth

    Posted 14 days ago

    Hello Matthew, 

    I assume you are using the SMTP integration?

    You need to check and make sure "Allow less secure apps" is turned on, on the Google side. This has been known to be turned off automatically. This should resolve the issue. 

    If that doesn't work then, I also found this developer forum thread, it looks like the recommendation is to reach out to Google. 

    Cheers, 



    ------------------------------
    Cameron
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Genesys Cloud CX | Gmail Integration With OAuth

    Posted 11 days ago

    Hey Cameron, 

    Thank you for your response. 

    Yes, SMTP integration. I 'believe' enabling 'Allow less secure apps' is only for basic authentication (username / password rather than Oauth). Google as of this month are no longer permitting basic authentication and Oauth is mandatory. 

    I've logged a ticket with Google. I'll update this post and let you know how I get on. 

    Thanks again. 



    ------------------------------
    Matthew Tipler
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources