Authenticate Google for calendar synchronization
Set up Google to start with reservation synchronization with the Workplace Reservation Management application. Create scopes, credentials and more.
Before you begin
Ensure the following:
Role required: Google Admin
Procedure
- Log in to https://admin.google.com/.
- Optional:
If you want to manage users for the Google account, do the following:
- Select Manage in the Users card on the homepage.
- Add, delete, or update user details.
- Log in to https://console.cloud.google.com/ with your google workspace credentials.
-
Create a project to get the OAuth authentication and the permission to use the Google Calendar from ServiceNow.
- Select Select a project on the top panel.
- On the select a project window, select NEW PROJECT.
-
Enter project details.
- Specify the Project name.
- Select your Organization.
- In the Location field, select Browse and select your organization.
-
Select CREATE.
A notification is displayed that the project is created.
- In the notification window, select SELECT PROJECT.
-
Set Google Calendar API permissions.
- On the homepage, select APIs & Services.
- On the top panel, select + ENABLE APIS AND SERVICES.
- On the Welcome to the API Library page, under the Google Workspace, select Google Calendar API.
-
On the Google Calendar API details page, select ENABLE.
The Google calendar API is enabled on your project.
-
Create credentials to use when creating a connection and credential for Google
- On the Google Calendar API details page, select CREATE CREDENTIALS.
-
On the Google Calendar API credentials form, fill in the fields:
- In the Select an API field, select Google Calendar API.
- Under the What data will you be accessing? section, select User data to create an OAuth application.
- Select NEXT.
-
In the OAuth Consent Screen section, fill the fields:
- In the App name field, specify a name for the OAuth app.
- In the User support email field, specify the user email to which consent-related questions can be sent.
- In the App logo section, select BROWSE to upload a logo for the OAuth app.
- In the Developer contact information section, specify the email address to which any project-related changes and updates must be sent.
- Select SAVE AND CONTINUE.
-
Add or remove scopes.
Specify permissions to access the Google Calendar API.
- Under Scopes section, select ADD OR REMOVE SCOPES.
- Select the following scopes:
- Select UPDATE.
- Select SAVE AND CONTINUE.
-
Generate the OAuth Client ID and related details.
- Under the OAuth Client ID section, in the Application type field, select Web application.
- In the Name field, enter a name for the application.
- Under the Authorized JavaScript origins, select +ADD URL to add the JavaScript URL.
-
Under the Authorized redirect URIs section, select +ADD URL to add a redirect URL.
Enter the URL of your ServiceNow instance.
-
Select CREATE.
The credentials for the OAuth application are created.
- Select DOWNLOAD to download the JSON file that contains the credential details.
- Copy and save the Client ID.
- Select DONE.