Set up the Google Cloud Datastore spoke
Integrate the ServiceNow instance and Google Cloud Datastore spoke using Google Cloud Platform credentials to authenticate ServiceNow requests.
Before you begin
- Request an Integration Hub subscription.
- Activate the Google Cloud Datastore spoke.
- Role required: admin.
Create a custom application
Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the Google Cloud Datastore spoke.
Before you begin
Role required: admin
About this task
Complete these steps from the Google Cloud Platform. See the Google Cloud Platform product documentation for instructions on creating and configuring custom applications.
Procedure
-
Register a new custom application by navigating to https://console.cloud.google.com/.
-
Create a project with your administrator credentials, and open the project.
-
From the APIs & Services menu, select OAuth consent screen, enter the application name, and specify the Authorized domain
service-now.com. -
Click Save.
-
From the APIs & Services menu, select Credentials, and select Create OAuth client ID from the Create credentials list.
-
Select the application type OAuth client ID.
-
Enter the following Authorized redirect URI:
https://<instance>.service-now.com/oauth_redirect.doand click Create.The OAuth client window shows your client ID and client secret.
-
Copy these two values to a text file so that you can use them when you Register Google Cloud Datastore as an OAuth provider.
The client ID and secret can always be accessed in the Google APIs & Services interface. Click Credentials and select the OAuth 2.0 client ID name.
Register Google Cloud Datastore as an OAuth provider
Register G suite as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.
Before you begin
Role required: admin
Procedure
-
Navigate to System OAuth > Application Registry.
-
Open for the record, Google Cloud Datastore.
-
On the form, fill these values.
Field Description Client ID Client ID of the Google Cloud Datastore application. Client Secret Client Secret of the Google Cloud Datastore application. OAuth API Script OAuthGoogleDatastoreUtils is selected by default. Authorization URL The OAuth authorization code endpoint: https://accounts.google.com/o/oauth2/auth.Token URL The OAuth server token endpoint: https://oauth2.googleapis.com/token.Redirect URL OAuth callback endpoint in this format: https://<instance>.service-now.com/oauth_redirect.do. If left blank, the instance auto-generates the URL. -
Right-click the form header, and click Save.
Create a credential record for the Google Cloud Datastore spoke
Create a credential record for the Google Cloud Datastore custom application. The Google Cloud Datastore Spoke connection and credential alias uses this credential to authorize actions.
Before you begin
Role required: admin.
Procedure
-
Navigate to All > Integration Hub > Connections & Credentials.
-
Open the record, GoogleCloudDatastore.
-
In the Credentials tab, click New.
The system displays this message:
What type of Credentials would you like to create? -
Select OAuth 2.0 Credentials.
-
On the form, fill these values.
Field Description Name Name to identify the credential record. For example, Google Cloud Datastore Cred.OAuth Entity Profile Select the default OAuth entity profile, Google Cloud Datastore default_profile. Credential alias Credential alias associated with this record. The default alias record, sn_gcp_cds_spoke.GoogleCloudDatastore is selected. [Omitted image "gcloud-datastore-cred.png"] Alt text: Credential record for Google Cloud Datastore spoke.
-
Right-click the form header and click Save.
-
To generate the OAuth token, click the Get OAuth Token related link.
---
title: Set up the Google Cloud Datastore spoke
description: Integrate the ServiceNow instance and Google Cloud Datastore spoke using Google Cloud Platform credentials to authenticate ServiceNow requests.Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the Google Cloud Datastore spoke.Register G suite as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.Create a credential record for the Google Cloud Datastore custom application. The Google Cloud Datastore Spoke connection and credential alias uses this credential to authorize actions.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/integration-hub/setup-gcloud-datastore.html
release: australia
product: Integration Hub
classification: integration-hub
topic_type: task
last_updated: "2026-03-12"
reading_time_minutes: 2
breadcrumb: [Google Cloud Datastore Spoke, Integration Hub spokes, Build integrations, Integration Hub, Workflow Data Fabric]
---
# Set up the Google Cloud Datastore spoke
Integrate the ServiceNow instance and Google Cloud Datastore spoke using Google Cloud Platform credentials to authenticate ServiceNow requests.
## Before you begin
- Request an Integration Hub subscription.
- Activate the Google Cloud Datastore spoke.
- Role required: admin.
## Create a custom application
Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the Google Cloud Datastore spoke.
### Before you begin
Role required: admin
### About this task
Complete these steps from the [Google Cloud Platform](https://cloud.google.com/). See the [Google Cloud Platform](https://cloud.google.com/docs) product documentation for instructions on creating and configuring custom applications.
### Procedure
1. Register a new custom application by navigating to [https://console.cloud.google.com/](https://console.cloud.google.com/).
2. Create a project with your administrator credentials, and open the project.
3. From the APIs & Services menu, select **OAuth consent screen**, enter the application name, and specify the Authorized domain `service-now.com`.
4. Click **Save**.
5. From the APIs & Services menu, select **Credentials**, and select **Create OAuth client ID** from the **Create credentials** list.
6. Select the application type **OAuth client ID**.
7. Enter the following **Authorized redirect URI**: `https://<instance>.service-now.com/oauth_redirect.do` and click **Create**.
The OAuth client window shows your client ID and client secret.
8. Copy these two values to a text file so that you can use them when you [Register Google Cloud Datastore as an OAuth provider](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-gcloud-datastore.md).
The client ID and secret can always be accessed in the Google APIs & Services interface. Click **Credentials** and select the OAuth 2.0 client ID name.
## Register Google Cloud Datastore as an OAuth provider
Register G suite as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.
### Before you begin
Role required: admin
### Procedure
1. Navigate to **System OAuth** > **Application Registry**.
2. Open for the record, **Google Cloud Datastore**.
3. On the form, fill these values.
|Field|Description|
|-----|-----------|
|Client ID|Client ID of the Google Cloud Datastore application.|
|Client Secret|Client Secret of the Google Cloud Datastore application.|
|OAuth API Script|**OAuthGoogleDatastoreUtils** is selected by default.|
|Authorization URL|The OAuth authorization code endpoint: `https://accounts.google.com/o/oauth2/auth`.|
|Token URL|The OAuth server token endpoint: `https://oauth2.googleapis.com/token`.|
|Redirect URL|OAuth callback endpoint in this format: `https://<instance>.service-now.com/oauth_redirect.do`. If left blank, the instance auto-generates the URL.|
4. Right-click the form header, and click **Save**.
## Create a credential record for the Google Cloud Datastore spoke
Create a credential record for the Google Cloud Datastore custom application. The Google Cloud Datastore Spoke connection and credential alias uses this credential to authorize actions.
### Before you begin
Role required: admin.
### Procedure
1. Navigate to **All** > **Integration Hub** > **Connections & Credentials**.
2. Open the record, **GoogleCloudDatastore**.
3. In the **Credentials** tab, click **New**.
The system displays this message: `What type of Credentials would you like to create?`
4. Select **OAuth 2.0 Credentials**.
5. On the form, fill these values.
|Field|Description|
|-----|-----------|
|Name|Name to identify the credential record. For example, `Google Cloud Datastore Cred`.|
|OAuth Entity Profile|Select the default OAuth entity profile, **Google Cloud Datastore default\_profile**.|
|Credential alias|Credential alias associated with this record. The default alias record, **sn\_gcp\_cds\_spoke.GoogleCloudDatastore** is selected.|
\[Omitted image "gcloud-datastore-cred.png"\] Alt text: Credential record for Google Cloud Datastore spoke.
6. Right-click the form header and click **Save**.
7. To generate the OAuth token, click the **Get OAuth Token** related link.
| title | Set up the Google Cloud Datastore spoke |
| description | Integrate the ServiceNow instance and Google Cloud Datastore spoke using Google Cloud Platform credentials to authenticate ServiceNow requests.Create a custom OAuth application in your Google Cloud Platform account to enable OAuth 2.0 authentication with the Google Cloud Datastore spoke.Register G suite as the OAuth provider so that the ServiceNow instance can request OAuth 2.0 tokens.Create a credential record for the Google Cloud Datastore custom application. The Google Cloud Datastore Spoke connection and credential alias uses this credential to authorize actions. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/integrate-applications/integration-hub/setup-gcloud-datastore.html |
| release | australia |
| product | Integration Hub |
| classification | integration-hub |
| topic_type | task |
| last_updated | 2026-03-12 |
| reading_time_minutes | 2 |
| breadcrumb | Google Cloud Datastore SpokeIntegration Hub spokesBuild integrationsIntegration HubWorkflow Data Fabric |