Use Control Room managed OAuth2 authentication in Google packages

In the Connect action, you can use the Control Room managed OAuth2 authentication option to establish a connection with the Google server and automate task using actions from the Google packages.

Prerequisites

Ensure you have completed the following tasks:
  1. Set up OAuth2 in the Google Cloud Platform.
  2. Configure OAuth 2.0 connection in Control Room
    Note: If you want to view or edit OAuth connections, ensure you are using a user role with the Manage and View connections permissions enabled for the OAUTH CONNECTIONS feature.

Procedure

  1. In the Actions palette, double-click or drag the Connect action from the package you want to use.
  2. In the Username field, you can provide a valid username or select the credential or credential variable that contains your Google username. To enter a value, click Insecure string.
  3. If you are configuring the Connect action for the Google Calendar or Google Sheets package, enter a session name.
  4. Select the Control room managed option from the OAuth2 Authentication Mode field.
  5. Click the Pick option to select a connection type.
  6. The Pick a connection window appears, select Custom from the Provider type field and select the appropriate connection name from the drop-down.
  7. Choose from the following:
    • Shared: The Control Room administrator integrates the OAuth connections with the Control Room and provides access to users. You can use this option to use the connections without having to enter any authentication details.
    • User-specific: When you use this option, you must log in to your Google account to authenticate and generate a user-specific token. Perform the following steps to use this option:
      1. In the Control Room, navigate to your profile My settings > OAuth connections.
      2. Click Login to authenticate.
      3. Sign in to your Google account and select Continue.
      4. Verify the services you have access to and Click Continue.

        If the connection is succeeded, it will display the status as Active.

  8. The option Wait for action to complete (In minutes) is only supported in Google Sheets package. You can specify the wait time (in minutes) in the Wait for action to complete (In minutes) field when performing actions such as Get, Set, or Delete. By default, the wait time is 10 minutes.
    Note: If the Google sheet does not open within the specified time, the task proceeds to execute the next set of actions.