Connecting to Google Drive

Google Drive is a cloud-based file storage and collaboration platform that allows users to store, share, and co-edit documents in real time from any device. Integrating Google Drive with IBM watsonx Orchestrate enables seamless access to files and folders for automation, data exchange, and workflow orchestration.

To enable this integration, you must establish a secure connection that enables both platforms to communicate. See Managing connectionsfor more details.

Important: By default, Single sign-on (SSO) is disabled for your app. To enable it, refer to Configuring single sign-on for applications.

Connecting to Google Drive using OAuth2

To connect watsonx Orchestrate to Google Drive using OAuth2:

  1. From the main menu, select Manage > Connections.

  2. Search for Google Drive.

  3. Locate the connection ID with the following format: google_oauth2_auth_code_ibm_184bdbd3

  4. Click edit next to the matched connection ID.

  5. Choose the environment where the connection is used:

    • Draft: for development or testing
    • Live: for production use
  6. Select OAuth2 Authorization Code as the Authentication Type.

  7. Provide the following values:

    Key Description
    Server URL Base URL of the Google Drive server
    Token URL Endpoint to exchange the authorization code for an access token
    Scope Defines what access is being requested
    Authorization URL URL where users are redirected to log in and authorize access
    Client ID Unique ID for your application
    Client Secret A secret key used to authenticate your app with Google Drive

    To get these values, see the Google Authentication API documentation.

  8. Choose the appropriate credential type.

  9. Click Save to complete the setup.

Connecting to Google Drive using Key Value Pair

To connect watsonx Orchestrate to Google Drive:

  1. From the main menu, go to Manage > Connections.

  2. Search for Google Drive and locate the connection ID: google_key_value_ibm_184bdbd3

  3. Click edit next to the matching connection ID.

  4. Select the environment where you want to create the connection:

    • Draft: for testing and development
    • Live: for production use
  5. Set Authentication Type to Key Value Pair.

  6. Add the following keys and their respective values. Click Add new field to input each pair:

    Key Description
    base_url The base URL for Google Drive API (for example, https://www.googleapis.com)
    token_url The URL used to obtain the OAuth token (for example, https://oauth2.googleapis.com/token)
    client_id Your Google Cloud project's client ID
    client_secret Your Google Cloud project's client secret
    bearer_token The access token used for API requests
    refresh_token The token used to refresh the bearer token when it expires

    To get these values, see the Google Authentication API documentation.

  7. Choose the credential type.

    Note: Only the team credentials are supported when an app is connected using the Key Value Pair authentication type.
  8. Click Save to complete the setup.

Note: The icon A Supports appears indicates that the connection was successfully established.