<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ALL PRIVILEGES not working in Terraform databricks_grants configuration in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22474#M540</link>
    <description>&lt;P&gt;Hi @Andrei Radulescu-Banu​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you should use ALL_PRIVILEGES:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_grants" "test" {
&amp;nbsp;
 provider = databricks.workspace
&amp;nbsp;
 catalog = databricks_catalog.test.name
&amp;nbsp;
 grant {
&amp;nbsp;
   principal = "account users"
&amp;nbsp;
   privileges = ["ALL_PRIVILEGES"]
&amp;nbsp;
 }
&amp;nbsp;
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if not, please try 'ALL'.&lt;/P&gt;&lt;P&gt;I did this in the past, but I've removed catalog creation from TF before pushing the code, so no history in repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docs: &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" target="test_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 08:12:42 GMT</pubDate>
    <dc:creator>Pat</dc:creator>
    <dc:date>2022-11-22T08:12:42Z</dc:date>
    <item>
      <title>ALL PRIVILEGES not working in Terraform databricks_grants configuration</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22473#M539</link>
      <description>&lt;P&gt;I'm trying to create a UC catalog in Terraform on AWS, and grant "account users" ALL PRIVILEGES. Here is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;resource "databricks_catalog" "test" {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;provider&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= databricks.workspace&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;metastore_id = var.metastore_id&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "test"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "account users"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;comment&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= "Managed by Terraform"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;properties = {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;purpose = "testing"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When applying the config the 1st time, everything is fine. I can verify in the UI that the config was set. However, when applying the config a 2nd time, I get the error below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Error: ALL PRIVILEGES is not allowed on catalog&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runnint terraform with TF_LOG=DEBUG gives me more detail about the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;022-11-14T11:10:46.638-0500 [WARN]&amp;nbsp;Provider "registry.terraform.io/databricks/databricks" produced an unexpected new value for module.unity_ca&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;talog.databricks_grants.test during refresh.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- .grant: planned set element cty.ObjectVal(map[string]cty.Value{"principal":cty.StringVal("account users"), "privileges":cty.SetVal([]cty&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;.Value{cty.StringVal("ALL PRIVILEGES")})}) does not correlate with any element in actual&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;2022-11-14T11:10:46.646-0500 [ERROR] provider.terraform-provider-databricks_v1.2.0: Response contains error diagnostic: tf_resource_type=databri&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;cks_grants @caller=/home/runner/work/terraform-provider-databricks/terraform-provider-databricks/vendor/github.com/hashicorp/terraform-plugin-go&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;/tfprotov5/internal/diag/diagnostics.go:56 @module=sdk.proto diagnostic_detail= diagnostic_severity=ERROR tf_provider_addr=provider tf_req_id=32&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;a078b5-8e24-7103-bc75-20127e8a24fa tf_rpc=PlanResourceChange diagnostic_summary="ALL PRIVILEGES is not allowed on catalog" tf_proto_version=5.3 &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;timestamp=2022-11-14T11:10:46.646-0500&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;resource "databricks_grants" "test" {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;provider = databricks.workspace&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;catalog&amp;nbsp;= databricks_catalog.test.name&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;grant {&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;principal&amp;nbsp;= "account users"&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;privileges = ["ALL PRIVILEGES"]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;nbsp;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;}&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion on how to set UC catalog permissions in Terraform?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:12:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22473#M539</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-11-14T16:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALL PRIVILEGES not working in Terraform databricks_grants configuration</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22474#M540</link>
      <description>&lt;P&gt;Hi @Andrei Radulescu-Banu​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you should use ALL_PRIVILEGES:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;resource "databricks_grants" "test" {
&amp;nbsp;
 provider = databricks.workspace
&amp;nbsp;
 catalog = databricks_catalog.test.name
&amp;nbsp;
 grant {
&amp;nbsp;
   principal = "account users"
&amp;nbsp;
   privileges = ["ALL_PRIVILEGES"]
&amp;nbsp;
 }
&amp;nbsp;
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if not, please try 'ALL'.&lt;/P&gt;&lt;P&gt;I did this in the past, but I've removed catalog creation from TF before pushing the code, so no history in repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;docs: &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" target="test_blank"&gt;https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 08:12:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22474#M540</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-22T08:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALL PRIVILEGES not working in Terraform databricks_grants configuration</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22475#M541</link>
      <description>&lt;P&gt;Yes! I was missing the underbar, "ALL_PRIVILEGES". It works now. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:55:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/all-privileges-not-working-in-terraform-databricks-grants/m-p/22475#M541</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-11-22T20:55:16Z</dc:date>
    </item>
  </channel>
</rss>

