Skip to content

Credentials

  • Create a project on Google Console

Create project google console

  • Internal: gives access only to people in the organisation

  • then push Create

  • then configure the required fields

    Then configure required fields

  • and below

    Below

  • We don’t need to configure the scopes, we’ll do it when we create the credentials.

In the console, create an OAuth Clients ID by pressing Create credentials

We dont need configure scopes well

Application Type : Web Application

Name : The Name of your client

Authorized redirect URIs :

https://credentials-<YOUR INSTANCE URL>/oauth2/callback

Once created, you must keep the values on the screen under Client ID/Client Secret. If you don’t want to lose them, you can use Download JSON to store them in a text file on your computer.

We dont need configure scopes well

We dont need configure scopes well

When you press Create, a window will open allowing you to choose the Google account from which the OAuth client will be able to retrieve the data.


The Google OAuth 2.0 system supports server-to-server interactions such as those between a web application and a Google service. For this scenario you need a service account, which is an account that belongs to your application instead of to an individual end user.

1. Start with opening the Google Cloud console

2. If you don’t have one already, create a Google Cloud Project: at the top-left, click Menu > IAM & Admin > Create a project.

3. In the Project name **field, enter a descriptive name for your project. Then, in the Organization & Location **fields, choose your domain, then click on Create. The console navigates to the Dashboard page and your project is created within a few minutes.

To access Google Alert Center, you need a Service account.

4. At the top-left, click on Menu > IAM & Project > Service Accounts

We dont need configure scopes well

5. Click on Create Service Account

We dont need configure scopes well

6. Fill in the details before clicking on Create and Continue

We dont need configure scopes well

7. Select Owner Role and click on Continue.

We dont need configure scopes well

8. Click on the Done button.

We dont need configure scopes well

9. Click on the Service Account you just created.

We dont need configure scopes well

10. Click on Keys > Add key > Create new key

We dont need configure scopes well

After clicking on Create new key, select Json for the key type. Afterwards, your file is saved in your downloads.

11. Once in the project, you have to enable the APIs you need:

For example, to use Google Calendar API:

  • Click on the search button and search “Google Calendar API”
  • Click on the enable button :
  • Then click on Enable APIS and services:

You can add whichever ones like Google Sheets API, Admin SDK API, etc. if you think will be useful for you. Be careful to notify admin if you choose a new one so he can authorize it in domain wide-delegation.

Set-up domain-wide delegation for a service account (Part for Google Admin)

Section titled “Set-up domain-wide delegation for a service account (Part for Google Admin)”

12. Set-up domain-wide delegation for a service account:

  • Still on your Google Cloud console

  • Click on Menu > IAM & Admin > Service Account.

  • Select your service account and show Advanced Settings.

  • Copy your Client ID, you’ll need it later.

  • Click on View Google Workspace Admin Console.

  • In the Admin console, at the top-left, ****click on Menu > Security > Access and data control > API controls.

  • Click on Manage Domain Wide Delegation.

  • Click on Add new.

    Click add new

  • Add theClient ID you copied earlier and enter the scopes you need such as https://www.googleapis.com/auth/apps.alerts then click on Authorize.

    Add theclient id you copied earlier

13. Go back on the Mindflow platform.

  • Go to Vault.
  • Click on Add a new credential.
  • Name your credential and choose Google (Vendor) as your attached service.
  • Select Google as your credential type.

14. Dig up your Json file you downloaded in step 7.

  • Copy your Client email ****you have in your Json file.
  • Copy your Private Key. Make sure you include the entire field (everything that’s between quotes).
  • Put this below in your Scopes according to the ones you wish to use. The scopes are separated with a space.

https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/apps.alerts

  • The Subject field’s mandatory for Admin APIs such as Admin SDK directory. The subject needs to be authorized to access the API. Otherwise, it’s not necessary.

    Subject fields mandatory admin apis such

15. Test those credentials in your playbook