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!
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 @ms4446 ,
thanks for reply
I recently added the Dataplex service account to the BigQuery dataset and granted it the "BigQuery Data Owner" role. However, I couldn't locate the "Dataplex Metadata Admin" role while attempting to assign it.
After adding the service account, I tried attaching the Attribute Store again, but the issue persists.
My BigQuery dataset resides in a separate project from the Dataplex project, does this affect ? .
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!
Hi
There are no
permissions when i was creating custom roles
Even if i grant my Dataplex service account with "Dataplex Administrator" and "Owner" role at the project-level, and then try attaching the attribute to my table again, the message "Updating IAM policy via Dataplex not supported for the resource associated with entity of name:projects/[my-project]/locations/[my-location]/lakes/[my-lake]/zones/[my-zone]/entities/[my-table], type: TABLE, Storage system: BIGQUERY" still pop up