<?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 Terraform can set ALL_PRIVILEGES and USE_CATALOG on catalogs for 'account users', but not
# SELECT or USE_SCHEMA in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20165#M13600</link>
    <description>&lt;P&gt;Only the GUI seems to allow SELECT and USE_SCHEMA 'account users' permissions on catalogs. Terraform gives me an error. Here is my Terraform config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_grants" "staging" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider = databricks.workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;catalog = databricks_catalog.staging.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;grant {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;principal = "account users"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;privileges = ["SELECT", "USE_CATALOG", "USE_SCHEMA"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;│ Error: USE_SCHEMA is not allowed on catalog&lt;/P&gt;&lt;P&gt;│ &lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;with module.unity_catalog.databricks_grants.staging,&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;on ../../modules/production/unity_catalog/main.tf line 158, in resource "databricks_grants" "staging":&lt;/P&gt;&lt;P&gt;│&amp;nbsp;158: resource "databricks_grants" "staging" {&lt;/P&gt;&lt;P&gt;│ &lt;/P&gt;&lt;P&gt;╵&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" target="_blank"&gt;Terraform man page for databricks_grants&lt;/A&gt; says the above should have worked (https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 23:32:34 GMT</pubDate>
    <dc:creator>Andrei_Radulesc</dc:creator>
    <dc:date>2022-11-28T23:32:34Z</dc:date>
    <item>
      <title>Terraform can set ALL_PRIVILEGES and USE_CATALOG on catalogs for 'account users', but not
# SELECT or USE_SCHEMA</title>
      <link>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20165#M13600</link>
      <description>&lt;P&gt;Only the GUI seems to allow SELECT and USE_SCHEMA 'account users' permissions on catalogs. Terraform gives me an error. Here is my Terraform config:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resource "databricks_grants" "staging" {&lt;/P&gt;&lt;P&gt;&amp;nbsp;provider = databricks.workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp;catalog = databricks_catalog.staging.name&lt;/P&gt;&lt;P&gt;&amp;nbsp;grant {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;principal = "account users"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;privileges = ["SELECT", "USE_CATALOG", "USE_SCHEMA"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;│ Error: USE_SCHEMA is not allowed on catalog&lt;/P&gt;&lt;P&gt;│ &lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;with module.unity_catalog.databricks_grants.staging,&lt;/P&gt;&lt;P&gt;│&amp;nbsp;&amp;nbsp;on ../../modules/production/unity_catalog/main.tf line 158, in resource "databricks_grants" "staging":&lt;/P&gt;&lt;P&gt;│&amp;nbsp;158: resource "databricks_grants" "staging" {&lt;/P&gt;&lt;P&gt;│ &lt;/P&gt;&lt;P&gt;╵&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants" target="_blank"&gt;Terraform man page for databricks_grants&lt;/A&gt; says the above should have worked (https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 23:32:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20165#M13600</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-11-28T23:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform can set ALL_PRIVILEGES and USE_CATALOG on catalogs for 'account users', but not
# SELECT or USE_SCHEMA</title>
      <link>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20166#M13601</link>
      <description>&lt;P&gt;Hi @Andrei Radulescu-Banu​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of the provider are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did check the github repo it should work:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/terraform-provider-databricks/blob/d65ef3518074a48e079080d94e1ab33a80bf7e0f/catalog/resource_grants.go#L183" target="test_blank"&gt;https://github.com/databricks/terraform-provider-databricks/blob/d65ef3518074a48e079080d94e1ab33a80bf7e0f/catalog/resource_grants.go#L183&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this would help:&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;This article refers to the privileges and inheritance model in Privilege Model version 1.0. If you created your metastore during the public preview (before August 25, 2022), you can upgrade to Privilege Model version 1.0 following&amp;nbsp;&lt;A href="https://docs.databricks.com/data-governance/unity-catalog/hive-metastore.html" alt="https://docs.databricks.com/data-governance/unity-catalog/hive-metastore.html" target="_blank"&gt;Upgrade to privilege inheritance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 04:57:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20166#M13601</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-12-01T04:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform can set ALL_PRIVILEGES and USE_CATALOG on catalogs for 'account users', but not
# SELECT or USE_SCHEMA</title>
      <link>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20167#M13602</link>
      <description>&lt;P&gt;Thanks Pat. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using databricks terraform provider version 1.2.0.&lt;/LI&gt;&lt;LI&gt;I see that the resource_grants.go has the expected settings, however, this did not work for me.&lt;/LI&gt;&lt;LI&gt;I don't see a ' Privilege Mode' setting that I could upgrade in the catalog. Probably means I have the latest privilege mode. Or, maybe, the privilege mode is handled differently on my back end which is AWS, not Azure.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I am setting these permissions manually (instead of Terraform) as a workaround.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 18:27:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/terraform-can-set-all-privileges-and-use-catalog-on-catalogs-for/m-p/20167#M13602</guid>
      <dc:creator>Andrei_Radulesc</dc:creator>
      <dc:date>2022-12-01T18:27:49Z</dc:date>
    </item>
  </channel>
</rss>

