dotConnect for Google BigQuery Documentation
On this page
    Obtaining the JSON Service Account Key
    On this page

    To connect to Google BigQuery with a service account, you need a JSON service account key.

    To get the key for your project using the Google Cloud Console:

    1. Open Google Cloud Console.
    2. Select the required project, then navigate to IAM & Admin > Service Accounts.

      The Security Accounts option

    3. Continue based on whether you want to create a new service account or use an existing one:
      • For a new account:
        1. Click Create service account.

          The Create service account option

        2. Name the account, enter the description, then click Create and continue.

          Name and description fields

        3. Grant the necessary role, then click Continue.

          Fields for granting a role

        4. Optional: Grant access to users or groups.
        5. Click Done.

          The Done button

      • For an existing account: Click the email address of the account.

        The account email address

    4. Click Keys.

      The Keys option

    5. Select Add key > Create new key.

      The Create new key option

    6. Select JSON as a key type, then click Create.

      JSON key type

    7. Save the file on your computer.

    The JSON file is downloaded to your computer.

    Specify the path to this file or its content in the ServiceAccount Json connection string parameter (Private Key JSON in the connection dialog) and set Authentication Type to ServiceAccount.

    Warning The JSON key file contains private credentials. Store it in a secure location and do not share it or commit it to source control.