-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add Google Workspace connection documentation #36243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maddiefranke
merged 9 commits into
master
from
maddie.franke/google-workspace-connection-doc
Apr 30, 2026
+170
−2
Merged
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1bd1a84
Add Google Workspace connection documentation
maddiefranke 4235d1c
Add Authorized JavaScript origins step and hyperlink navigation steps
maddiefranke ee2f6d3
Merge branch 'master' into maddie.franke/google-workspace-connection-doc
maddiefranke a2ce1f8
Update connection steps to reference Action Catalog page
maddiefranke b1c1e2e
Apply editorial review feedback to Google Workspace connection doc
estherk15 7fde3d5
Update to OAuth 2.0
estherk15 c440697
Add to left nav
estherk15 bddf8e4
Address PR review feedback
maddiefranke 08bb79b
Merge branch 'master' into maddie.franke/google-workspace-connection-doc
estherk15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,171 @@ | ||
| --- | ||
| title: Google Workspace | ||
| description: Connect Datadog Actions to Google Workspace services using OAuth2 to automate tasks in Gmail, Calendar, Drive, Docs, Sheets, Forms, and Chat. | ||
| disable_toc: false | ||
| further_reading: | ||
| - link: "/actions/connections/" | ||
| tag: "Documentation" | ||
| text: "Find out more about connection credentials" | ||
| --- | ||
|
|
||
| Use a Google Workspace connection to authenticate Datadog Actions against Google Workspace APIs. This allows you to interact with Gmail, Google Calendar, Google Drive, Google Docs, Google Sheets, Google Forms, and Google Chat in your workflows and apps. | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Before creating the connection in Datadog, you must set up an OAuth2 client in Google Cloud. | ||
|
|
||
| ### 1. Create a Google Cloud project | ||
|
maddiefranke marked this conversation as resolved.
Outdated
|
||
|
|
||
| If you don't already have a Google Cloud project: | ||
|
|
||
| 1. Go to the [Google Cloud Console][1]. | ||
| 1. Click **Select a project** > **New Project**. | ||
| 1. Enter a project name and click **Create**. | ||
|
|
||
| ### 2. Enable the required APIs | ||
|
|
||
| Enable the Google APIs you plan to use in your workflows: | ||
|
|
||
| 1. Navigate to [**APIs & Services** > **Library**][5] in the Google Cloud Console. | ||
| 1. Search for and enable the APIs for the Google Workspace services you intend to use: | ||
|
|
||
| | Google Workspace service | API to enable | | ||
| |---|---| | ||
| | Gmail | Gmail API | | ||
| | Google Calendar | Google Calendar API | | ||
| | Google Drive | Google Drive API | | ||
| | Google Docs | Google Docs API | | ||
| | Google Sheets | Google Sheets API | | ||
| | Google Forms | Google Forms API | | ||
| | Google Chat | Google Chat API | | ||
|
|
||
| ### 3. Configure the OAuth consent screen | ||
|
|
||
| 1. Navigate to [**APIs & Services** > **OAuth consent screen**][6] in the Google Cloud Console. | ||
| 1. Select a user type: | ||
| - **Internal**: Limits access to users in your Google Workspace organization. Recommended for most enterprise use cases. | ||
| - **External**: Allows any Google account to authorize. Requires app verification for production use. | ||
|
maddiefranke marked this conversation as resolved.
Outdated
|
||
| 1. Fill in the required app information fields and click **Save and Continue**. | ||
| 1. Under **Scopes**, add the OAuth scopes required for the actions you intend to use. See the [scopes reference](#scopes-reference) below. | ||
| 1. Complete the remaining steps and click **Back to Dashboard**. | ||
|
|
||
| ### 4. Create OAuth2 credentials | ||
|
|
||
| 1. Navigate to [**APIs & Services** > **Credentials**][7] in the Google Cloud Console. | ||
| 1. Click **Create Credentials** > **OAuth client ID**. | ||
| 1. For **Application type**, select **Web application**. | ||
| 1. Under **Authorized JavaScript origins**, add the Datadog origin URL. This URL is displayed in the Datadog connection creation dialog when you select **Google Workspace**. | ||
| 1. Under **Authorized redirect URIs**, add the Datadog OAuth callback URL. This URL is also displayed in the Datadog connection creation dialog when you select **Google Workspace**. | ||
|
maddiefranke marked this conversation as resolved.
Outdated
|
||
| 1. Click **Create**. | ||
| 1. Copy the **Client ID** and **Client Secret** — you need these when creating the connection in Datadog. | ||
|
|
||
| ## Create the connection in Datadog | ||
|
|
||
| 1. From the [Action Catalog page][2], click the **Connections** tab. | ||
| 1. Click **New Connection**. | ||
| 1. Select the **Google Workspace** icon. | ||
| 1. Enter a **Connection Name**. | ||
| 1. Enter the **Client ID** and **Client Secret** from your Google Cloud OAuth2 credentials. | ||
| 1. Select the **Scopes** required for the actions you plan to use. See the [scopes reference](#scopes-reference) below. | ||
| 1. The **Authorize URL** and **Token URL** fields are pre-populated with Google's default OAuth2 endpoints. Leave these as-is unless you have a specific reason to change them. | ||
|
maddiefranke marked this conversation as resolved.
Outdated
|
||
| 1. Click **Create**. | ||
| 1. In the authorization window that opens, sign in with the Google account you want to use and grant the requested permissions. | ||
|
|
||
| ## Scopes reference | ||
|
|
||
| Select only the scopes required by the actions you intend to use. | ||
|
|
||
| ### Gmail | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Gmail: Full Access | `https://mail.google.com/` | Full read and write access to all Gmail resources | | ||
| | Gmail: Read, Compose, Send, and Permanently Delete Threads | `https://www.googleapis.com/auth/gmail.modify` | All access except deleting permanently | | ||
| | Gmail: Read Only | `https://www.googleapis.com/auth/gmail.readonly` | View email messages and settings | | ||
| | Gmail: Send Only | `https://www.googleapis.com/auth/gmail.send` | Send email on behalf of the user | | ||
| | Gmail: Compose and Send | `https://www.googleapis.com/auth/gmail.compose` | Manage drafts and send email | | ||
| | Gmail: Manage Labels | `https://www.googleapis.com/auth/gmail.labels` | Create, read, update, and delete labels | | ||
| | Gmail: View Metadata Only | `https://www.googleapis.com/auth/gmail.metadata` | View email metadata such as labels and headers | | ||
|
|
||
| ### Google Calendar | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Calendar: Full Access | `https://www.googleapis.com/auth/calendar` | Full read and write access to calendars | | ||
| | Calendar: Read Only | `https://www.googleapis.com/auth/calendar.readonly` | View calendars | | ||
| | Calendar: Manage Events | `https://www.googleapis.com/auth/calendar.events` | View and edit events on all calendars | | ||
| | Calendar: View Events | `https://www.googleapis.com/auth/calendar.events.readonly` | View events on all calendars | | ||
|
|
||
| ### Google Drive | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Drive: Full Access | `https://www.googleapis.com/auth/drive` | Full read and write access to all Drive files | | ||
| | Drive: Read Only | `https://www.googleapis.com/auth/drive.readonly` | View files in Drive | | ||
| | Drive: Access Files Created by This App | `https://www.googleapis.com/auth/drive.file` | Access only files created or opened by this app | | ||
| | Drive: App Data Folder | `https://www.googleapis.com/auth/drive.appdata` | Access the app-specific data folder | | ||
| | Drive: Manage Metadata | `https://www.googleapis.com/auth/drive.metadata` | View and manage metadata of files | | ||
| | Drive: View Metadata | `https://www.googleapis.com/auth/drive.metadata.readonly` | View metadata of files | | ||
|
|
||
| ### Google Docs | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Docs: Full Access | `https://www.googleapis.com/auth/documents` | View and manage Google Docs documents | | ||
| | Docs: Read Only | `https://www.googleapis.com/auth/documents.readonly` | View Google Docs documents | | ||
|
|
||
| ### Google Sheets | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Sheets: Full Access | `https://www.googleapis.com/auth/spreadsheets` | View and manage Google Sheets spreadsheets | | ||
| | Sheets: Read Only | `https://www.googleapis.com/auth/spreadsheets.readonly` | View Google Sheets spreadsheets | | ||
|
|
||
| ### Google Forms | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Forms: Create and Edit Forms | `https://www.googleapis.com/auth/forms.body` | View and manage form definitions | | ||
| | Forms: View Forms | `https://www.googleapis.com/auth/forms.body.readonly` | View form definitions | | ||
| | Forms: View Responses | `https://www.googleapis.com/auth/forms.responses.readonly` | View form responses | | ||
|
|
||
| ### Google Chat | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Chat: View, Compose, and Delete Messages | `https://www.googleapis.com/auth/chat.messages` | View, create, update, and delete messages | | ||
| | Chat: Compose and Send Messages | `https://www.googleapis.com/auth/chat.messages.create` | Create and send messages in spaces | | ||
| | Chat: View Messages | `https://www.googleapis.com/auth/chat.messages.readonly` | View messages and reactions | | ||
| | Chat: Manage Spaces | `https://www.googleapis.com/auth/chat.spaces` | Create, view, update, and delete spaces | | ||
| | Chat: Create Spaces | `https://www.googleapis.com/auth/chat.spaces.create` | Create spaces | | ||
| | Chat: View Spaces | `https://www.googleapis.com/auth/chat.spaces.readonly` | View spaces | | ||
|
|
||
| ### User identity | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | User Info: Email Address | `https://www.googleapis.com/auth/userinfo.email` | View the user's email address | | ||
| | User Info: Basic Profile | `https://www.googleapis.com/auth/userinfo.profile` | View the user's basic profile info | | ||
| | OpenID Connect | `openid` | Authenticate using OpenID Connect | | ||
|
|
||
| ### Google Workspace Admin | ||
|
|
||
| | Scope label | Scope value | Description | | ||
| |---|---|---| | ||
| | Admin: Manage Users | `https://www.googleapis.com/auth/admin.directory.user` | Create, read, update, and delete users | | ||
| | Admin: View Users | `https://www.googleapis.com/auth/admin.directory.user.readonly` | View users in the directory | | ||
| | Admin: Manage Groups | `https://www.googleapis.com/auth/admin.directory.group` | Create, read, update, and delete groups | | ||
| | Admin: View Groups | `https://www.googleapis.com/auth/admin.directory.group.readonly` | View groups in the directory | | ||
|
|
||
| ## Further reading | ||
|
|
||
| {{< partial name="whats-next/whats-next.html" >}} | ||
|
|
||
| <br>Do you have questions or feedback? Join the **#workflows** or **#app-builder** channel on the [Datadog Community Slack][4]. | ||
|
|
||
| [1]: https://console.cloud.google.com/ | ||
| [2]: https://app.datadoghq.com/actions/action-catalog | ||
| [4]: https://chat.datadoghq.com/ | ||
| [5]: https://console.cloud.google.com/apis/library | ||
| [6]: https://console.cloud.google.com/apis/credentials/consent | ||
| [7]: https://console.cloud.google.com/apis/credentials | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.