Configuration for Google Workplace

Step 1: Create a new project

Follow these steps to create a new project in Google Workplace:

  1. Open the Google Cloud Console at https://console.cloud.google.com/.
  2. Select your Google Workplace organization from the dropdown list at the top of the page.
  3. Google Console
  4. Click the "Select a Project" dropdown at the top of the page and click "New Project".
  5. Enter a name for your project and click "Create".

Step 2: Enable the Google Contacts API and the Google People API

Follow these steps to enable the required APIs for your project:

  1. Open the Google Cloud Console at https://console.cloud.google.com/.
  2. Select your project from the dropdown list at the top of the page.
  3. In the left menu, navigate to "APIs and Services" > "Enable APIs and services".
  4. Click the "Enable APIs and Services" button at the top.
  5. Search for "Google Contacts API" and click the corresponding result.
  6. Google APIs
  7. Click the "Enable" button.
  8. Repeat steps for the "Google People API".

Step 3: Create a new OAuth 2.0 client ID for a web application

Follow these steps to create a new OAuth 2.0 client ID:

  1. Open the Google Cloud Console at https://console.cloud.google.com/.
  2. Select your project from the dropdown list at the top of the page.
  3. In the left menu, navigate to "APIs and Services" > "Credentials".
  4. Click the "Create credentials" button and select "OAuth client ID".
  5. OAuth Credentials
  6. Select "Web application" as the application type.
  7. Enter a name for the client ID.
  8. Under "Authorized redirect URIs", add the URL of the page where you want to use the Google API (https://odoo.waterstream.co.uk/google_contacts/authentication).
  9. Click the "Create" button.
  10. OAuth Config
  11. Download JSON file using the download button.
  12. Download Config
  13. Upload this JSON file into odoo user's configurations.
  14. Odoo Users

Check this document for more information about Google API configurations https://developers.google.com/identity/protocols/oauth2/web-server