How to create a Google Cloud project and OAuth consent screen for your application before generating OAuth credentials?
Google Cloud Project Creation
Before you can create OAuth credentials, you need a Google Cloud project. This project serves as a container for all your APIs and authentication configurations.
Note: If you already have an account with ‘Google Cloud console” you can skip Step 1.
STEP 1: Access Google Cloud Console
The Google Cloud Console is where you'll manage all your cloud resources and OAuth configurations.
Instructions:
- Navigate to https://console.cloud.google.com/
- Sign in with your Google Account (use an account with admin access)
- If you see a welcome screen, read through it and click "Agree and continue"
- Accept the terms of service if prompted
STEP 2: Create a New Project
A Google Cloud project is a container that holds all your APIs, credentials, and settings.
Instructions:
- Click on the Project Selector dropdown on the top left of the page.

- In the popup window that appears, click the blue "NEW PROJECT" button.

- A form will appear asking for project details:
- Project Name: Enter a meaningful name like "My Backup Application" or "OAuth Integration Project"
- Organization: This will likely be auto-filled or show "No organization"
- Parent resource: Select your organization.

- Click on "CREATE" button.

- You'll see a notification at the bottom right indicating "Project creation in progress." Once complete, you'll be automatically switched to your new project.
STEP 3: Enable Required APIs
- Go to the home page of the project created.

- Search for ‘Admin SDK API’ in the search bar.

- Click on ‘Enable’

- Wait for the API to be enabled (you'll see a loading indicator)
Note: When you enable an API, Google Cloud grants your project access to that API. This doesn't immediately consume resources; it just makes the API available for your project to use.
- Repeat the same process and enable all the below mentioned APIs
# API to enable Service name Why it is required 1 Admin SDK API admin.googleapis.comRequired for users, groups, organizational units, domains, roles, calendar resources, ChromeOS devices, mobile devices, user schemas, audit reports, and Chrome printers. 2 Chrome Policy API chromepolicy.googleapis.comRequired for ChromeOS and Chrome browser policy backup. 3 Chrome Management API chromemanagement.googleapis.comRequired for Chrome app details and Chrome management information. 4 Drive Labels API drivelabels.googleapis.comRequired for Google Drive admin labels metadata. 5 Groups Settings API groupssettings.googleapis.comRequired for Google Groups settings. 6 Enterprise License Manager API licensing.googleapis.comRequired for Google Workspace license information. 7 Access Context Manager API `` Required for Context Aware Access information. 8 Cloud Resource Manager API `` Required for Cloud Resource Manager information. 9 Identity and Access Management (IAM) API `` Required for Identity and Access Management (IAM) information. 10 Cloud Identity-Aware Proxy API `` Required for Cloud Identity-Aware Proxy information. - Enable, Cloud Identity API. Sometimes, it is not found in the API marketplace, hence go to the link mentioned below and select you project and click on 'Enable'.
Link - https://console.cloud.google.com/apis/library/cloudidentity.googleapis.com?project=YOUR_PROJECT_ID
PHASE 2: OAuth 2.0 Consent Screen Configuration
The OAuth consent screen is what users see when they're asked to authorize your application. It should clearly explain what your application does and what permissions it needs.
STEP 4: Create OAuth 2.0 Consent Screen
Instructions:
- Navigate to 'Google Cloud' home page with your project selected.

- In the left sidebar under "APIs & Services," click "OAuth consent screen"

- Click on 'Get Started'.

STEP 5: Configure Consent Screen Details
Instructions:
- Configure app information
- Application Name: Enter your application's name (e.g., "MyCompany Backup Service"). This will appear on the consent screen, so make it something users will recognize.
- User Support Email: Enter an email address where users can contact you if they have questions about your application's privacy or security.
- Click on 'Next'

- Configure audience
- External: Choose this option (recommended for most applications). This allows you to create an application that can be used by anyone with a Google account.
- Internal: Choose this only if your organization specifically requires it. This limits access to users within your Google Workspace domain.
- Click on 'Next'

- Developer Contact Information: Enter your contact email (e.g., admin@mycompany.com). This is where Google will contact you if there are issues with your application.
- Click on 'Next'

- Agree to Google terms and 'Continue'

- Click on 'Create'

- Click on 'Branding' in the left navigation and scroll-down to find 'Authorized domains'.

- Authorized Domains: Add the domain(s) where your application is hosted:
- Click "Add Domain"
- Enter your domain name (e.g., backup.mycompany.com)
- You may need to verify domain ownership. If prompted, follow Google's verification process.
- Add multiple domains if your application is hosted in multiple locations
- Click on 'Save'.

STEP 6: Define OAuth Scopes
Scopes define what permissions your application is requesting.
Instructions:
- On the left navigation, click on 'Data access'.
- Click "ADD OR REMOVE SCOPES"

- A scope selection dialog will appear with a search bar and list of available scopes
- You need to add all the 23 required scopes for this integration (see the detailed scope section below for descriptions)
- For each scope, either:
- Search for it by name in the search box
- Scroll to find it in the list
- Click the checkbox next to the scope to select it
- Clear the search bar and repeat the steps for the next scope
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.user.security
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.orgunit
https://www.googleapis.com/auth/admin.directory.domain
https://www.googleapis.com/auth/admin.directory.rolemanagement
https://www.googleapis.com/auth/admin.directory.resource.calendar
https://www.googleapis.com/auth/admin.directory.device.chromeos
https://www.googleapis.com/auth/admin.directory.device.mobile
https://www.googleapis.com/auth/admin.directory.device.mobile.action
https://www.googleapis.com/auth/admin.directory.userschema
https://www.googleapis.com/auth/admin.reports.audit.readonly
https://www.googleapis.com/auth/chrome.management.policy
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/cloud-identity.userinvitations
https://www.googleapis.com/auth/cloud-identity.groups
https://www.googleapis.com/auth/cloud-identity.inboundsso
https://www.googleapis.com/auth/cloud-identity.policies
https://www.googleapis.com/auth/drive.admin.labels
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/apps.groups.settings
https://www.googleapis.com/auth/apps.licensing
https://www.googleapis.com/auth/chrome.management.appdetails.readonly
- Once you've selected all 23 scopes, click "UPDATE"
- Click "Save".

Scope Summary Table
| # | OAuth scope | Required API | Access required |
|---|---|---|---|
| 1 | https://www.googleapis.com/auth/admin.directory.user |
Admin SDK API | View and manage users in the domain. |
| 2 | https://www.googleapis.com/auth/admin.directory.user.security |
Admin SDK API | Manage user security and data access settings. |
| 3 | https://www.googleapis.com/auth/admin.directory.group |
Admin SDK API | View and manage Google Groups in the domain. |
| 4 | https://www.googleapis.com/auth/admin.directory.orgunit |
Admin SDK API | View and manage organizational units. |
| 5 | https://www.googleapis.com/auth/admin.directory.domain |
Admin SDK API | View and manage domain provisioning information. |
| 6 | https://www.googleapis.com/auth/admin.directory.rolemanagement |
Admin SDK API | Manage delegated admin roles and role assignments. |
| 7 | https://www.googleapis.com/auth/admin.directory.resource.calendar |
Admin SDK API | View and manage calendar resources. |
| 8 | https://www.googleapis.com/auth/admin.directory.device.chromeos |
Admin SDK API | View and manage ChromeOS device metadata. |
| 9 | https://www.googleapis.com/auth/admin.directory.device.mobile |
Admin SDK API | View and manage mobile device metadata. |
| 10 | https://www.googleapis.com/auth/admin.directory.device.mobile.action |
Admin SDK API | Perform administrative actions on mobile devices. |
| 11 | https://www.googleapis.com/auth/admin.directory.userschema |
Admin SDK API | View and manage custom user schemas. |
| 12 | https://www.googleapis.com/auth/admin.reports.audit.readonly |
Admin SDK API | View Google Workspace audit reports. |
| 13 | https://www.googleapis.com/auth/chrome.management.policy |
Chrome Policy API | View, create, edit, and delete ChromeOS and Chrome browser policies. |
| 14 | https://www.googleapis.com/auth/admin.chrome.printers |
Admin SDK API | View, add, edit, and delete Chrome printers. |
| 15 | https://www.googleapis.com/auth/cloud-identity.userinvitations |
Cloud Identity API | Manage Cloud Identity user invitations. |
| 16 | https://www.googleapis.com/auth/cloud-identity.groups |
Cloud Identity API | View, create, change, and delete Cloud Identity groups and memberships. |
| 17 | https://www.googleapis.com/auth/cloud-identity.inboundsso |
Cloud Identity API | View and manage inbound SSO profiles and assignments. |
| 18 | https://www.googleapis.com/auth/cloud-identity.policies |
Cloud Identity API | View and manage Cloud Identity policies. |
| 19 | https://www.googleapis.com/auth/drive.admin.labels |
Drive Labels API | View, create, edit, and delete all Drive labels in the organization. |
| 20 | https://www.googleapis.com/auth/cloud-platform |
Cloud Identity API / Google Cloud APIs used by the product | Broad Google Cloud access scope. Required by the installation URL; enable only the underlying Google APIs used by the product. |
| 21 | https://www.googleapis.com/auth/apps.groups.settings |
Groups Settings API | View and manage Google Groups settings. |
| 22 | https://www.googleapis.com/auth/apps.licensing |
Enterprise License Manager API | View and manage Google Workspace license assignments. |
| 23 | https://www.googleapis.com/auth/chrome.management.appdetails.readonly |
Chrome Management API | View detailed information about Chrome apps installed on managed browsers and devices. |
Click here to know, how to generate the OAuth client credentials to connect your Google Admin Console to SysCloud backup application.