Create a Custom Google App
Procedure
You can refer to the instructions below to create a custom Google app.
-
Create a New Project.
Follow the steps below to create a new project:
- Go to Google Cloud IAM.
- Click the current resource.
- Click NEW PROJECT.
- Complete the Project name, Organization, and Location fields.
- Click Create.
-
Configure OAuth Consent Screen
Select the newly created project, and follow the steps below to configure OAuth consent screen:
- Navigate to APIs & Services > OAuth consent screen.
- Select Internal or External, and then click Create.
- Complete the app information form based on your scenario.
- Click SAVE AND CONTINUE.
-
Add Scopes
Follow the steps below to add required permission scopes to the app:
- Click ADD OR REMOVE SCOPES.
- You can add required permission scopes to a custom Google app by referring to IBM® Storage Protect for Cloud Google Workspace
- After you finish adding scopes, click SAVE AND CONTINUE.
-
Create OAuth Credentials
Follow the instructions below to create a service account and a client ID:
- Navigate to APIs & Services > Credentials.
- Click CREATE CREDENTIALS and select Service account.
- Enter a service account name and a service account ID. Then, click DONE.
- On the Credentials page, click the newly created service account.
- Expand Advanced settings, and then click CREATE GOOGLE WORKSPACE MARKETPLACE-COMPATIBLE OAUTH CLIENT.
- Click CONTINUE in the confirmation window. Then, you can check the created client ID on the Credentials page.
- Click the service account, and then click the KEYS tab.
- Click ADD KEY, and then click Create new key.
- Select the JSON key type and click CREATE. The downloaded file contains important information for the configuration in the following steps, and you must store the file securely as it can’t be recovered if lost.
-
Configure Scopes and Enable APIs
You can refer to the instructions below to configure scopes and enable APIs:
- Go to Google Admin console, and then navigate to Security > Access and data control > API controls.
- Click MANAGE DOMAIN WIDE DELEGATION.
- Click Add new.
-
Add the client ID and OAuth scopes. After you finish the configuration,
click AUTHORIZE.
Note the following:
- To get the client ID, you can open the downloaded private key file or go to the Credentials page.
- The configured scopes should be the same as the scopes added to the app. You can add required permission scopes to a custom Google app by referring to IBM Storage Protect for Cloud Google Workspace
- Go to Google Cloud > APIs & Services > Enabled APIs & services, and click ENABLE APIS AND SERVICES.
- The API library page appears. You need to enable APIs according to your added scopes.
- Click the API that you want to enable, and then click ENABLE.