<?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 Access Control in hive_metastore Based on Cluster Type in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/access-control-in-hive-metastore-based-on-cluster-type/m-p/39481#M26992</link>
    <description>&lt;P&gt;Hello Databricks Community, I asked the same question on the Get Started Discussion page but feels like here is the right place for this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm reaching out with a query regarding access control in the hive_metastore. I've encountered behavior that I'd like to understand better and potentially address.&lt;/P&gt;&lt;P&gt;To illustrate the situation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've set up three users for testing purposes: admin, dataengineer1, and dataanalyst1.&lt;/LI&gt;&lt;LI&gt;The admin user granted permissions to dataengineer1 for three specific tables: circuits, country_regions, and results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Case 1:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;When using SQL Warehouse (as seen in the screenshot, labeled as serverless-sql-wh) or a Cluster with shared Access mode, dataengineer1 can only view the tables they have permissions for. This is the expected behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeltaTrain_0-1691618617261.png" style="width: 791px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3110i28A278FDB186CD90/image-dimensions/791x182?v=v2" width="791" height="182" role="button" title="DeltaTrain_0-1691618617261.png" alt="DeltaTrain_0-1691618617261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 2:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;However, when a Single User Access mode cluster is activated (in the screenshot, labeled as&amp;nbsp;&lt;/SPAN&gt;dataengineer1@d...&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;dataengineer1&lt;SPAN&gt;&amp;nbsp;can view all schemas and tables. This is not the desired behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeltaTrain_1-1691618617263.png" style="width: 801px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3111i42C384415EFD4126/image-dimensions/801x263?v=v2" width="801" height="263" role="button" title="DeltaTrain_1-1691618617263.png" alt="DeltaTrain_1-1691618617263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm hoping to find a solution that ensures even in Single User Access Mode, users can only access Schemas and Tables for which they have permission.&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated. I value the expertise of this community and look forward to your responses.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;DeltaTrain&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Aug 2023 22:05:39 GMT</pubDate>
    <dc:creator>DeltaTrain</dc:creator>
    <dc:date>2023-08-09T22:05:39Z</dc:date>
    <item>
      <title>Access Control in hive_metastore Based on Cluster Type</title>
      <link>https://community.databricks.com/t5/data-engineering/access-control-in-hive-metastore-based-on-cluster-type/m-p/39481#M26992</link>
      <description>&lt;P&gt;Hello Databricks Community, I asked the same question on the Get Started Discussion page but feels like here is the right place for this question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm reaching out with a query regarding access control in the hive_metastore. I've encountered behavior that I'd like to understand better and potentially address.&lt;/P&gt;&lt;P&gt;To illustrate the situation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've set up three users for testing purposes: admin, dataengineer1, and dataanalyst1.&lt;/LI&gt;&lt;LI&gt;The admin user granted permissions to dataengineer1 for three specific tables: circuits, country_regions, and results.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Case 1:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;When using SQL Warehouse (as seen in the screenshot, labeled as serverless-sql-wh) or a Cluster with shared Access mode, dataengineer1 can only view the tables they have permissions for. This is the expected behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeltaTrain_0-1691618617261.png" style="width: 791px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3110i28A278FDB186CD90/image-dimensions/791x182?v=v2" width="791" height="182" role="button" title="DeltaTrain_0-1691618617261.png" alt="DeltaTrain_0-1691618617261.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Case 2:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;However, when a Single User Access mode cluster is activated (in the screenshot, labeled as&amp;nbsp;&lt;/SPAN&gt;dataengineer1@d...&lt;SPAN&gt;),&amp;nbsp;&lt;/SPAN&gt;dataengineer1&lt;SPAN&gt;&amp;nbsp;can view all schemas and tables. This is not the desired behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DeltaTrain_1-1691618617263.png" style="width: 801px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3111i42C384415EFD4126/image-dimensions/801x263?v=v2" width="801" height="263" role="button" title="DeltaTrain_1-1691618617263.png" alt="DeltaTrain_1-1691618617263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm hoping to find a solution that ensures even in Single User Access Mode, users can only access Schemas and Tables for which they have permission.&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated. I value the expertise of this community and look forward to your responses.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;DeltaTrain&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Aug 2023 22:05:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/access-control-in-hive-metastore-based-on-cluster-type/m-p/39481#M26992</guid>
      <dc:creator>DeltaTrain</dc:creator>
      <dc:date>2023-08-09T22:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control in hive_metastore Based on Cluster Type</title>
      <link>https://community.databricks.com/t5/data-engineering/access-control-in-hive-metastore-based-on-cluster-type/m-p/44495#M27664</link>
      <description>&lt;P&gt;That is expected. The single user mode is the legacy standard + UC ACL enabled.&amp;nbsp;&lt;A href="https://docs.databricks.com/en/archive/compute/cluster-ui-preview.html#how-does-backward-compatibility-work-with-these-changes" target="_blank"&gt;https://docs.databricks.com/en/archive/compute/cluster-ui-preview.html#how-does-backward-compatibility-work-with-these-changes&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For your case, you need the hive table acl enabled to restrict the list schemas and list table actions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add below two spark conf to enabled the hive metastore ACL:&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;spark.databricks.acl.dfAclsEnabled true
spark.databricks.repl.allowedLanguages python,sql&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 18:44:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/access-control-in-hive-metastore-based-on-cluster-type/m-p/44495#M27664</guid>
      <dc:creator>User16752239289</dc:creator>
      <dc:date>2023-09-12T18:44:43Z</dc:date>
    </item>
  </channel>
</rss>

