---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# OAuth 2.0 tutorial - configure the Google service as an OAuth provider

# OAuth 2.0 tutorial - configure the Google service as an OAuth provider {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Use the Google Developer Console to set up an OAuth 2.0 provider.

## Before you begin

This procedure is performed within the Google Developer Console. You must have a Google account to access this console.

Role required: None

## About this task

Configure the Google service in order to obtain a client ID and client secret, and specify your ServiceNow instance URL as the OAuth redirect URL.  
Note:  
This information describes the state of the Google Developer Console and Contacts API as of July 22, 2015. Changes made after that date may not be included in this document.

## Procedure

1. Navigate to the Google Developer Console (https://console.developers.google.com).
2. Log in using your Google credentials.
3. Click Create a project.
4. Enter a Project name.
5. Click Create.  
   After Google creates the project, the project dashboard appears.
6. Navigate to APIs \& ServicesEnable APIs \& Services.
7. Click the Enable APIs and Services button.
8. Enter Contacts API in the search bar.
9. Click on Contacts API and then click Enable API.
10. **Optional:** Return to the APIs \& Services homepage from the hamburger menu and navigate to APIs \& ServicesOAuth consent screen.
11. **Optional:** Click Configure consent screen and complete the app registration wizard according to your business needs.
12. Navigate to APIs \& ServicesCredentials and click Create CredentialsOauth client ID.
13. Select Web application from the drop down.
14. Enter a descriptive OAuth 2.0 client in the Name.  
    This name appears when you authorize the OAuth token in your instance.
15. In the Create Client ID window, add the OAuth redirect URI for your instance to the Authorized redirect URIs field.  
    This URI follows the format https://\<instance\>.service-now.com/oauth_redirect.do
16. Click Create.  
    The client ID information appears.
17. Record the Client ID and Client secret values.  
    You use these values to configure the Google service as an OAuth provider in your instance.
{#t_OAuthDemoConfigureGoogle__steps_anh_mvb_ss}
**Previous topic:** [Outbound REST with OAuth 2.0 profile tutorial - integrating with Google Contacts API](https://servicenow-prod.fluidtopics.net/CFtGWs3Ag9iboFm6jLRoag "This tutorial explains how to use an OAuth 2.0 profile to authenticate an outbound REST message with Google to retrieve contact information.")  
**Next topic:** [OAuth 2.0 tutorial - create an OAuth provider and profile](https://servicenow-prod.fluidtopics.net/NKBl77dMjQW3KEfuM1d2Lg "Set up the Google service as an OAuth provider in ServiceNow by entering your client information, Google API URLs, and configuring the OAuth profile.")

*[\>]: and then


