Integrations

Google OAuth2

13min

The Google APIs credentials relies on the OAuth2 protocol. OAuth2 is an industry-standard protocol for authorization. It allows a client to easily authenticate and authorize access to resources.

How to configure Google OAuth2 credentials

1. Open the Credentail Manager page and create a new OAuth2 (REST API) credential.

Document image


2. Select the service you need:

Document image


3. From the list of populated recomended scopes, select only the scopes you need and remove the rest (full list of the authorized scopes at the bottom of the page):

Document image


4. After the needed scopes are selected click on the "Sign in with Google" button and select/add the account you want.

Document image


5. Select or review the permissions and click allow:

Document image


6. Enter an endpoint and validate your credential ( this is not mandatory ):

Document image


7. Save the credential.

Authorized Scopes:

You can manually add scopes in the Credential in order to gain access to two or more services in the same credential. If you selected Google Sheets services and you also need Gmail, just add the scopes manually.



Adding other scopes that are not on this list will not work.



Full access to the account's mailboxes, including permanent deletion of threads and messages This scope should only be requested if your application needs to immediately and permanently delete threads and messages, bypassing Trash; all other actions can be performed with less permissive scopes.

All read/write operations except immediate, permanent deletion of threads and messages, bypassing Trash.

Create, read, update, and delete drafts. Send messages and drafts.

Read resources metadata including labels, history records, and email message headers, but not the message body or attachments.

View and manage all of your Drive files.

View and download all your Drive files.

Create new Drive files, or modify existing files, that you open with an app or that the user shares with an app while using the Google Picker API or the app's file picker.

View and manage metadata of files in your Drive.

View metadata for files in your Drive.

See, edit, share, and permanently delete all the calendars you can access using Google Calendar.

View and edit events on all your calendars.

See, edit, create, and delete all your Google Docs documents.

See all your Google Docs documents.

Create, edit, and delete forms.

View all forms responses.

View all form bodies.