Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Service account used for Write to Big Query subscription

Hello,

I am trying to create a new subscription from an existing topic that will write directly to a BQ table which I have created.

However when creating I get the following error message:

Cannot determine whether service account service-xxx has permission to write to the BigQuery table. Please check that the table exists and that permissions are configured.

This isn't a service account managed by me, so I don't know how to modify its permissions.

Is there a way to choose the service account that I want to use?

Best regards!

2 2 1,279
2 REPLIES 2

I also got stuck. This is how I unstuck myself. 


But the problem is that you cannot see this service account (even after selecting "Include Google-provided role grants").

Solution:

* Choose your project
* Click "Add+" and enter the principal email
* Provide the Roles as required (double check docs)
* BigQuery Data Editor
* BigQuery Metadata Viewer
 
Success

You could grant a role on the table such as roles/bigquery.dataEditor. You need to have the Service Account added to your project.

GRANT `ROLE_LIST`
ON TABLE DATASET.TABLE
TO 'USER_LIST';

See more on this document.