Creating Google Drive storage provider type

This section provides information about how to properly configure the Google™ Drive storage provider type.

Before you begin

The following list shows the prerequisites to create a Google Drive storage provider:

  • IBM RPA on premises environment.

  • User with the following permissions:

    • View storage provider types
    • Manage storage provider types

    See the Checking user permissions topic to learn how to check your user permissions.

  • Google™ 🡥 account.

Procedure

Follow the steps to create a Google™ Drive™ app:

  1. Create your Google Drive application
  2. Get the Client ID and Client secret
  3. Configure the storage provider type in the IBM Robotic Process Automation

Create your Google Drive application

  1. Navigate to the Google Drive Developers 🡥 website.
  2. Log in with your account.
  3. Create a new project or use an existing project. Refer to Creating and managing projects 🡥 for more information.
  4. On the left side menu, click Enabled APIs & services.
  5. Click the Enable APIs and services button.
  6. Search for Google Drive API and select it from the list.
  7. Click the Enable button.
  8. On the left side menu in APIs & Services, go to OAuth consent screen.
  9. Select the External option, and click the Create button.
  10. Name your app, such as IBM RPA Storage.
  11. Select your email in the User support email combination box.
  12. Optional: Upload an image file to become your application's logo.
  13. Optional: Enter URLs for your Application's home page, public privacy policy, and terms of service.
  14. Optional: Enter authorized domains, if you are using a custom domain.
  15. In Developer contact information, enter one or more email addresses and click Save and continue.
  16. Optional: On the Scopes tab, click Add or remove scopes to manage your application scopes. See OAuth 2.0 scopes for Google APIs 🡥 for more information.
  17. Optional: Click Save and continue once you are done configuring the scopes.
  18. Optional: On the Test users tab, add users to test your app.
  19. Click Save and continue.
  20. Click Back to dashboard.

Get the Client ID and Client secret

  1. On the left side menu in APIs & Services, go to Credentials.

  2. Click Create credentials > OAuth client ID.

  3. Select the Web application option in the Application type combination box.

  4. Name your application, such as IBM RPA Google Drive.

  5. In Authorized redirect URIs, click Add URI. This address is the Fully Qualified Domain Name (FQDN) to your IBM RPA's API, such as https://example.com:7790, where example.com is the FQDN and 7790 is the port used by the IBM RPA's API, with the OAuth2 specifications /integration/oauth2. Following are examples of valid URLs with the OAuth2 specifications:

    • https://example.com:7790/integration/oauth2
    • https://api.example.com/integration/oauth2 if you have configured the api subdomain as your API domain forwarding to the appropriate API port.

    🛈 Remember: Replace the URL with the appropriate server API URL.

  6. Click Create to create the credentials.

After you create the credentials, you should be prompted with the Client ID and Client secret.

If you were unable to see it, follow these steps:

  1. Navigate to Google Cloud Developers 🡥.
  2. In the left side menu, go to Credentials.
  3. Under OAuth 2.0 Client IDs, look for your newly created credentials and click it.
  4. The Client ID and Client secret are listed on the right.

Configure the storage provider type in the IBM Robotic Process Automation

  1. Navigate to the IBM Robotic Process Automation main page.

  2. On the side menu, click Storage and go to the Storage provider type tab. For older versions of IBM RPA, go to Configuration > Storage Provider Type.

  3. Click the Create storage provider type button.

  4. Select Google Drive as the Type.

  5. In the Client ID field, enter your Client ID.

  6. In the Client Secret field, enter your Client secret.

  7. In the Redirect URL field, enter the Redirect URL you have previously configured in the credentials page, such as https://api.example.com/integration/oauth2.

  8. In the Authorization URL field, enter https://accounts.google.com/o/oauth2/v2/auth .

  9. In the Authorization Template Parameter field, enter the following code snippet:

    access_type=offline&client_id={clientId}&response_type=code&redirect_uri={redirectUri}
    

    🛈 Remember: IBM RPA automatically replaces the values of {clientId} and {redirectUri} with the values defined in Client ID and Redirect URL, respectively.

  10. In the Token URL field, enter https://www.googleapis.com/oauth2/v4/token .

  11. In the API URL field, enter https://www.googleapis.com/drive/v2/ .

  12. In the Scopes field, enter https://www.googleapis.com/auth/drive .

  13. Click Save.

Result

As result, you can view a notification that states that the storage provider type was added successfully. You can also see it in the list of storage provider types.

If it fails, you can also view a notification. In this case, review the data that you entered and retry to create the storage provider type.

What to do next

Create a new storage provider to use it. See Creating storage provider integrations for more information.