<?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: List granted access for a group or a user in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71630#M7376</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85354"&gt;@Henrik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To grant a user the privilege to query system tables, a metastore admin or another privileged user must grant USE and SELECT permissions on the system schemas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GRANT USAGE ON CATALOG  system TO &amp;lt;user_name&amp;gt;;
GRANT USAGE ON SCHEMA information_schema TO &amp;lt;user_name&amp;gt;;
GRANT SELECT ON TABLE &amp;lt;table_name&amp;gt; TO &amp;lt;user_name&amp;gt;;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Include &amp;lt;user_name&amp;gt; in backticks ``&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Please note that these commands should be executed by a metastore admin or another privileged user.&lt;/P&gt;
&lt;P&gt;Let me know if it helps,&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Alessandro&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 15:24:58 GMT</pubDate>
    <dc:creator>anardinelli</dc:creator>
    <dc:date>2024-06-04T15:24:58Z</dc:date>
    <item>
      <title>List granted access for a group or a user</title>
      <link>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71475#M7373</link>
      <description>&lt;P&gt;Is there any way where I can see what access a group or a user have been given to objects (Tables, views, catalogs etc.)?&lt;/P&gt;&lt;P&gt;I noticed that we have the following information_schema tables:&lt;/P&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;catalog_privileges&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;routine_privileges&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;table_privileges&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;schema_privileges&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;volume_privileges&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;P&gt;All very helpfull, but i'm missing an overview for what &lt;STRONG&gt;views&lt;/STRONG&gt; a group or a user can select.&lt;/P&gt;&lt;P&gt;So how do I get this overview of rights for a group or user?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 12:52:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71475#M7373</guid>
      <dc:creator>Henrik</dc:creator>
      <dc:date>2024-06-03T12:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: List granted access for a group or a user</title>
      <link>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71484#M7374</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85354"&gt;@Henrik&lt;/a&gt;&amp;nbsp;how are you?&lt;/P&gt;
&lt;P&gt;To list the groups that can access a view, you can use the system.information_schema.table_privileges system table. Here is a sample query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SELECT grantee, table_name, privilege_type
FROM system.information_schema.table_privileges
WHERE table_name = "your_view_name";&lt;/LI-CODE&gt;
&lt;P&gt;This query will return the groups (grantee), the table name (table_name), and the type of privilege (privilege_type) they have on the table. Please replace "your_view_name" with the name of your view.&lt;/P&gt;
&lt;P&gt;For system tables, access is governed by Unity Catalog (UC), but system tables contain operational data for all assets in the DB account, including those not governed by UC. By default, the Account Admin and Metastore Administrator can read from all system tables.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Alessandro&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:14:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71484#M7374</guid>
      <dc:creator>anardinelli</dc:creator>
      <dc:date>2024-06-03T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: List granted access for a group or a user</title>
      <link>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71558#M7375</link>
      <description>&lt;P&gt;I there a way to give users that are not account admin nor metastore admin to read all rows from these tables?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 06:02:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71558#M7375</guid>
      <dc:creator>Henrik</dc:creator>
      <dc:date>2024-06-04T06:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: List granted access for a group or a user</title>
      <link>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71630#M7376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/85354"&gt;@Henrik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To grant a user the privilege to query system tables, a metastore admin or another privileged user must grant USE and SELECT permissions on the system schemas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GRANT USAGE ON CATALOG  system TO &amp;lt;user_name&amp;gt;;
GRANT USAGE ON SCHEMA information_schema TO &amp;lt;user_name&amp;gt;;
GRANT SELECT ON TABLE &amp;lt;table_name&amp;gt; TO &amp;lt;user_name&amp;gt;;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Include &amp;lt;user_name&amp;gt; in backticks ``&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Please note that these commands should be executed by a metastore admin or another privileged user.&lt;/P&gt;
&lt;P&gt;Let me know if it helps,&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Alessandro&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:24:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/list-granted-access-for-a-group-or-a-user/m-p/71630#M7376</guid>
      <dc:creator>anardinelli</dc:creator>
      <dc:date>2024-06-04T15:24:58Z</dc:date>
    </item>
  </channel>
</rss>

