<?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 How to grant all tables in schema except 1 in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/107872#M42936</link>
    <description>&lt;P&gt;Hi Guys, I am trying to grant all tables in a schema to a user group in databricks. The only catch is that there is one table I do not want granted. I currently am granting schema access to the group so the benefit is that as tables are add in the future the group will inherit these as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I was thinking is that I could just revoke the single table and it would work but that is not working. This is what I have :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GRANT&lt;/SPAN&gt; &lt;SPAN&gt;USE&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMA&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN&gt;ON&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMA&lt;/SPAN&gt; &lt;SPAN&gt;catalog_name&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;schema_name&lt;/SPAN&gt; &lt;SPAN&gt;TO&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;MY_GROUP&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REVOKE&lt;/SPAN&gt; &lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN&gt;ON&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;catalog_name&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;schema_name&lt;/SPAN&gt;&lt;SPAN&gt;.exclude_table &lt;/SPAN&gt;&lt;SPAN&gt;TO&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;MY_GROUP&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have seen suggestions to just list the tables and manually grant the tables one by one and leave out the one I dont want but this will eliminate the benefit in the future where new tables are added I will have to regrant those new tables.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also I have seen a post where someone suggested to use row filtering and just remove all rows for that user group. That would work but seems like overkill to my simple requirement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone have any other suggestions on how to I can grant all tables in a schema except for 1 table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for any suggestions&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 16:55:37 GMT</pubDate>
    <dc:creator>eballinger</dc:creator>
    <dc:date>2025-01-30T16:55:37Z</dc:date>
    <item>
      <title>How to grant all tables in schema except 1</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/107872#M42936</link>
      <description>&lt;P&gt;Hi Guys, I am trying to grant all tables in a schema to a user group in databricks. The only catch is that there is one table I do not want granted. I currently am granting schema access to the group so the benefit is that as tables are add in the future the group will inherit these as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I was thinking is that I could just revoke the single table and it would work but that is not working. This is what I have :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GRANT&lt;/SPAN&gt; &lt;SPAN&gt;USE&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMA&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN&gt;ON&lt;/SPAN&gt; &lt;SPAN&gt;SCHEMA&lt;/SPAN&gt; &lt;SPAN&gt;catalog_name&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;schema_name&lt;/SPAN&gt; &lt;SPAN&gt;TO&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;MY_GROUP&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;REVOKE&lt;/SPAN&gt; &lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EXECUTE&lt;/SPAN&gt; &lt;SPAN&gt;ON&lt;/SPAN&gt; &lt;SPAN&gt;TABLE&lt;/SPAN&gt; &lt;SPAN&gt;catalog_name&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;schema_name&lt;/SPAN&gt;&lt;SPAN&gt;.exclude_table &lt;/SPAN&gt;&lt;SPAN&gt;TO&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;MY_GROUP&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have seen suggestions to just list the tables and manually grant the tables one by one and leave out the one I dont want but this will eliminate the benefit in the future where new tables are added I will have to regrant those new tables.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also I have seen a post where someone suggested to use row filtering and just remove all rows for that user group. That would work but seems like overkill to my simple requirement.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Anyone have any other suggestions on how to I can grant all tables in a schema except for 1 table?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for any suggestions&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 16:55:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/107872#M42936</guid>
      <dc:creator>eballinger</dc:creator>
      <dc:date>2025-01-30T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant all tables in schema except 1</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/108129#M42978</link>
      <description>&lt;P&gt;Your use case will not be solved with this solution, but trying to help still - Is it possible to move that 1 table to another schema?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 16:25:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/108129#M42978</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-01-31T16:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant all tables in schema except 1</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/108145#M42983</link>
      <description>&lt;P&gt;What you are facing is because of inheritance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/upgrade-privilege-model.html" target="_blank"&gt;https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/upgrade-privilege-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I would say this is by design, but please feel free to suggest it as an idea here -&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/en/resources/ideas.html#ideas" target="_blank"&gt;https://docs.databricks.com/en/resources/ideas.html#ideas&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 17:05:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-grant-all-tables-in-schema-except-1/m-p/108145#M42983</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-01-31T17:05:16Z</dc:date>
    </item>
  </channel>
</rss>

