Forum Discussion

rubentj's avatar
rubentj
Frequent Visitor
5 years ago
Solved

Google BigQuery - Service Account JSON file contents - what do I enter from the JSON file?

Hey guys. 

 

I am trying to connect to Google Bigquery using a Service Account instead of a personal account. 

 

I have created the JSON file on the following format: 

Here are some documentation regarding credentials etc - https://cloud.google.com/iam/docs/creating-managing-service-account-keys#iam-service-account-keys-create-console

 

I have tried to use the Client_mail as Service Account Email in Power BI Desktop and Private_key as Json File contents. 

 

What am I doing wrong? What should I insert as JSON file contents?

 

Thank you in advance!

 

 

 

10 Replies

    • rubentj's avatar
      rubentj
      Frequent Visitor

      Hi v-janeyg-msft 

       

      As I wrote, I have already created the JSON-file, so that is not the issue here. The issue is that it isn't clear what part of the file I should paste into the connector-field in Power BI desktop. 

       

       

      • v-janeyg-msft's avatar
        v-janeyg-msft
        Community Support

        rubentj 

         

        If you follow the steps, you should get information.

         

        Best Regards

        Janey Guo

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • I'm also having the same issue - wanted to see if this had any resolution (other than someone giving instructions on getting the key), but what exactly goes into power bi to make it effective.  Thank you. 

  • This worked for me:
    So basically I dont remove anything from the file, I open it in a texteditor and then I minify it.

    -Go to your service account in Bigquery and grab the email for the service account you want to add to Power BI

    -Download the key in JSON format.

    -Open the file in a texteditor, copy the whole thing inc. curly brackets. Dont remove anything!

    -paste it into https://jsonformatter.org/json-minify since the contents need to be in one line

    -copy the result and paste into the correct input field.

     

    hope it works for you!