Hi all,
I'm trying to attach an Attribute Store to a table in BigQuery that already existed before I created a Dataplex asset mapping the entire dataset. While I can query the table successfully through Dataplex, I encounter a warning message when attempting to attach an Attribute Store: "Updating IAM policy via Dataplex not supported for the resource associated with entity of name."
this means the Attribute Store isn't working correctly. Are there specific requirements for attaching an Attribute Store to a pre-existing BigQuery table within a Dataplex lake's zone?
Solved! Go to Solution.
Hi @Victor07hl ,
The warning message, "Updating IAM policy via Dataplex not supported for the resource associated with entity of name" usually means Dataplex needs explicit permission to manage Attribute Stores for tables it didn't create.
Here's how to fix it:
1. Grant IAM Roles Manually:
service-PROJECT_NUMBER@gcp-sa-dataplex.iam.gserviceaccount.com
).2. Use Terraform or gcloud:
gcloud
example:gcloud projects add-iam-policy-binding [PROJECT-ID] \
--member="serviceAccount:service-[PROJECT_NUMBER]@gcp-sa-dataplex.iam.gserviceaccount.com" \
--role="roles/bigquery.dataOwner"
Important Considerations:
After updating permissions, try attaching the Attribute Store again. It should work smoothly now!
Hi @Victor07hl ,
Yes, you are right – Dataplex Metadata Admin
isn't a pre-defined role in BigQuery IAM. It's actually a custom role you'll need to create within Dataplex itself. Here's how:
1. Create the Custom Role:
dataplex.entities.updateMetadata
dataplex.entities.getMetadata
dataplex.entities.list
(if you want to allow listing entities)2. Grant the Custom Role:
Cross-Project Setup:
Yes, having the BigQuery dataset in a separate project can affect things. Make sure the Dataplex service account from your Dataplex project also has the necessary permissions in the BigQuery project. You might need to grant it the BigQuery Data Viewer
role in the BigQuery project as well.
After these steps:
Try attaching the Attribute Store again. If everything is set up correctly, it should work this time!