<?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: Databricks SQL View with table access control in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16646#M581</link>
    <description>&lt;P&gt;If the owners are not the same, the user  (one which has SELECT on VIEW) must also have&amp;nbsp; SELECT privileges on the underlying table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that owner of the view and table are the same. If not, please set it to the same owner (user or group).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ALTER SCHEMA &amp;lt;schema-name&amp;gt; OWNER TO `&amp;lt;user-name&amp;gt;@&amp;lt;user-domain&amp;gt;.com`&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 13:58:59 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-06-27T13:58:59Z</dc:date>
    <item>
      <title>Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16644#M579</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to grant 'select' option on some columns in my table.&lt;/P&gt;&lt;P&gt;So i created view, and now people can access my view but cannot access the table.&lt;/P&gt;&lt;P&gt;However, they cannot do 'select' on the view, because they do not have privileges to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do in this situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 07:42:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16644#M579</guid>
      <dc:creator>LukaszJ</dc:creator>
      <dc:date>2022-06-27T07:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16646#M581</link>
      <description>&lt;P&gt;If the owners are not the same, the user  (one which has SELECT on VIEW) must also have&amp;nbsp; SELECT privileges on the underlying table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that owner of the view and table are the same. If not, please set it to the same owner (user or group).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ALTER SCHEMA &amp;lt;schema-name&amp;gt; OWNER TO `&amp;lt;user-name&amp;gt;@&amp;lt;user-domain&amp;gt;.com`&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 13:58:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16646#M581</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-06-27T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16647#M582</link>
      <description>&lt;P&gt;For best practice, grant usage on database and SELECT on view. They don’t need to have access to table. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:44:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16647#M582</guid>
      <dc:creator>01_binary</dc:creator>
      <dc:date>2022-06-28T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16649#M584</link>
      <description>&lt;P&gt;Dear Hubert,&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To my mind, It does not make sense.&lt;/P&gt;&lt;P&gt;So how can I only share some of the columns in the table with someone?&lt;/P&gt;&lt;P&gt;The problem is that the table is fed frequently. It seems strange to create a new one (without a few columns) after every update of the first one.&lt;/P&gt;&lt;P&gt;Do you have any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:18:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16649#M584</guid>
      <dc:creator>LukaszJ</dc:creator>
      <dc:date>2022-06-29T16:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16650#M585</link>
      <description>&lt;P&gt;Dear 01_binary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose it doesn't work with this combination.&lt;/P&gt;&lt;P&gt;Then the user (who does not have access to the table, but has view access) gets a message that the table is not authorized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:20:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16650#M585</guid>
      <dc:creator>LukaszJ</dc:creator>
      <dc:date>2022-06-29T16:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16651#M586</link>
      <description>&lt;P&gt;Dear Kaniz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right.&lt;/P&gt;&lt;P&gt;I am so sorry for the problem, but I do not have time to answer every day.&lt;/P&gt;&lt;P&gt;However, I will always give an answer, with a slight delay at most.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:23:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16651#M586</guid>
      <dc:creator>LukaszJ</dc:creator>
      <dc:date>2022-06-29T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16652#M587</link>
      <description>&lt;P&gt;In that case, you need to grant SELECT permission on table too. I'm not sure if you can only grant permissions on only some columns. It will be on all columns of the table if permission is given on table.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:47:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16652#M587</guid>
      <dc:creator>NM</dc:creator>
      <dc:date>2022-06-29T16:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16654#M589</link>
      <description>&lt;P&gt;To sum up,&lt;/P&gt;&lt;P&gt;It is not possible to create a view based on a table that someone does not have permission to.&lt;/P&gt;&lt;P&gt;It's a pity, because this option would be very useful to limit access to batch-fed tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for the help and your time!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Łukasz&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 11:11:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/16654#M589</guid>
      <dc:creator>LukaszJ</dc:creator>
      <dc:date>2022-07-07T11:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks SQL View with table access control</title>
      <link>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/42851#M1186</link>
      <description>&lt;P&gt;Thanks for the tip regarding the view and the owner needing to have the same owner - this resolved my issue!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 06:29:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/databricks-sql-view-with-table-access-control/m-p/42851#M1186</guid>
      <dc:creator>Nathan_OB</dc:creator>
      <dc:date>2023-08-30T06:29:47Z</dc:date>
    </item>
  </channel>
</rss>

