Configuring Google Workspace Account/Email as outgoing and incoming emails

I have been trying in vain to configure the external oAuth2 connections for google workspace in suitecrm.
I have all the credentials and other information set up and configure on googles side but configuring things to actually work with it on the suitecrm side seems to be eluding me.

I am finding a ton of information on integrating with Microsoft and azure and the configurations for it. but next to nothing for google.

I have found this tutorial for configuring the google side but I can’t seem to find the second part for integrating it into suitecrm.

any suggestions or recent tutorials for this that any of you may know would be great.

I can answer any questions about the current configuration as well.
I know it is a big ask but i really am at a loss and would appreciate any help.

Check out these links:

Google Credentials and Syncing :: SuiteCRM Documentation

Custom Google SSO - :man_technologist: Development Help - SuiteCRM

I realized when i was reading through the documentation that you provided that i had entirely omitted that the specific google workspace functions that i need to connect to are the inbound and outbound email services.

I have been staring at this problem so long that that bit of information formed in my head but apparently my fingers didn’t get the memo as i was typing.

Sorry for the oversight and hopefully someone out there has tried and succeeded in getting google mail services to function through oauth after the sept 30 2024 cut off.

So, is it not working for you?

I’m using SuiteCRM 8.8 on Ubuntu 24.04.01 with PHP 8.3 and MariaDB 11.4.3 on a server we manage ourselves.

I’d like to second this question. Is there a guide for setting up the particular combination of OAuth providers and OAuth connections needed to enable Inbound Email for a non-Microsoft integration? I’m also working with Google for Business and only want a vanilla setup, so it would be great to have an end to end guide for it, but at least a guide for the SuiteCRM side of the OAuth components on their own would be invaluable.

Like @twidlerofthumbs I believe I have the appropriate things set up on the Google Workspace side, specifically the OAuth 2.0 app and associated Client ID credentials.

The trouble I’m having is with the OAuth components on the SuiteCRM side. There appear to be at least two related components to configure (i.e. an External OAuth Provider - Group and Personal or both - and External OAuth Connection - Group and Personal or both). I believe the Inbound Email configurations will be easy enough once the OAuth connections work, as there appears to be reasonable documentation about this.

The following guides do NOT cover the topic even though they hint at parts of it…

Here we’re introduced to setting up an OAuth2 Provider in SuiteCRM but there is no reference to what any of the Base Config fields mean and where to get the values from:

(Note, I found other documentation indicating a Google Workspace provider will use the Generic provider Connector type, not the Microsoft one like in the screenshot on that page. That’s fine, and I’ve been able to populate the Client ID and Client Secret from the app I set up on the Google side. But the rest of the form includes fields that seem like they need values but there’s no obvious place to get them, such as Authorize URL, Authorize URL Options, and Access Token URL.)

The above SuiteCRM guide links to this, which provides a few hints about configuration of fields for the Generic Connector type but it’s difficult to see exactly what to take out of this guide in regards to what the SuiteCRM configuration form needs:

https://oauth2-client.thephpleague.com/usage/

Here we’re introduced to creating an OAuth connection (which I believe is necessary before any Inbound Email accounts can be created), but there’s no reference to how this relates to providers, and no info about how to populate the token related fields:

(Note that guide seems to assume that we’re using a Microsoft provider type. For my Google connection, clicking the “Authenticate” button immediately after entering a name and selecting my provider per this guide’s instructions produces a blank SuiteCRM popup screen.)

There are some hints here (particularly in Section 3), but of course most of this guide is about creating the Microsoft side of the connection so it’s no use for other platforms:

There is some info about how to set up security groups in SuiteCRM once providers and email accounts are created, but this doesn’t appear to be useful until everything the complete OAuth2 process is set up:

So… I think the part for which we need further help or documentation (or which I haven’t found documentation for yet) is the configuration of all parts of the OAuth2 External Providers and OAuth2 External Connections screens in SuiteCRM.

1 Like