Abacn commented on PR #40177:
URL: https://github.com/apache/beam/pull/40177#issuecomment-5780047892

   Did some search, it appears we can explicitly Include the Service Account in 
Dataset Access on Creation (Programmatic Fix):
   
   ```
   dataset = bigquery.Dataset(dataset_ref)
   entries = list(client.get_dataset(dataset_ref).access_entries)
   entries.append(
       bigquery.AccessEntry(
           role="roles/bigquery.dataEditor",
           entity_type="userByEmail",
           entity_id="<SERVICE_ACCOUNT_EMAIL>",
       )
   )
   dataset.access_entries = entries
   client.create_dataset(dataset)
   ```
   
   to 
   
   
https://github.com/apache/beam/blob/28279d2e9f59268696ab62267c26ea4403d768f9/sdks/python/apache_beam/io/gcp/bigquery_tools.py#L850
   
   we may want to make permission settings configurable and pass a parameter 
here
   
   
https://github.com/apache/beam/blob/9863d92199ef246c9cf322cebec72e3c448cc940/sdks/python/apache_beam/yaml/integration_tests.py#L246


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to