<?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 Audit Access Rights in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/audit-access-rights/m-p/129154#M2584</link>
    <description>&lt;P&gt;We have a large Databricks instance, and we are performing a technical audit of Databricks to identify (1) the full list of&amp;nbsp;&lt;SPAN&gt;users, service principals, and groups; (2) the full list of&amp;nbsp;&lt;/SPAN&gt;objects (e.g. catalogs, schemas, jobs, notebooks, etc.); and (3) the access levels of the&amp;nbsp;&lt;SPAN&gt;users, service principals, and groups&lt;/SPAN&gt; to those objects.&lt;/P&gt;&lt;P&gt;Here are the specific asks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What are all the universe of ‘objects’ on Databricks that users can create and use to transform data? (e.g. catalogs, schemas, jobs, notebooks, etc.)&lt;/LI&gt;&lt;LI&gt;Are there hierarchal access relationships between these objects? For example, access to Object A gives you access to Object B and Object C.&lt;/LI&gt;&lt;LI&gt;How can we pull this information programmatically from Databricks?&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 21 Aug 2025 16:23:54 GMT</pubDate>
    <dc:creator>Databricks1126</dc:creator>
    <dc:date>2025-08-21T16:23:54Z</dc:date>
    <item>
      <title>Audit Access Rights</title>
      <link>https://community.databricks.com/t5/data-governance/audit-access-rights/m-p/129154#M2584</link>
      <description>&lt;P&gt;We have a large Databricks instance, and we are performing a technical audit of Databricks to identify (1) the full list of&amp;nbsp;&lt;SPAN&gt;users, service principals, and groups; (2) the full list of&amp;nbsp;&lt;/SPAN&gt;objects (e.g. catalogs, schemas, jobs, notebooks, etc.); and (3) the access levels of the&amp;nbsp;&lt;SPAN&gt;users, service principals, and groups&lt;/SPAN&gt; to those objects.&lt;/P&gt;&lt;P&gt;Here are the specific asks:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What are all the universe of ‘objects’ on Databricks that users can create and use to transform data? (e.g. catalogs, schemas, jobs, notebooks, etc.)&lt;/LI&gt;&lt;LI&gt;Are there hierarchal access relationships between these objects? For example, access to Object A gives you access to Object B and Object C.&lt;/LI&gt;&lt;LI&gt;How can we pull this information programmatically from Databricks?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:23:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/audit-access-rights/m-p/129154#M2584</guid>
      <dc:creator>Databricks1126</dc:creator>
      <dc:date>2025-08-21T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Access Rights</title>
      <link>https://community.databricks.com/t5/data-governance/audit-access-rights/m-p/129182#M2585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/180503"&gt;@Databricks1126&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I understand that you’re looking to capture permissions across a wide variety of Databricks objects. These can generally be grouped into three main categories:&lt;/P&gt;&lt;P&gt;- Data objects (Unity Catalog–governed) – catalogs, schemas, tables, views, volumes, functions, models.&lt;BR /&gt;- Workspace objects (compute / code / workflow) – jobs, notebooks, repos, pipelines, SQL warehouses, dashboards.&lt;BR /&gt;- Identity / configuration objects – users, service principals, groups, secrets, clusters, instance pools.&lt;/P&gt;&lt;P&gt;Because this is quite a broad universe, a good first step for such an audit is to use the Databricks REST API. The official reference is here:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/api/workspace/introduction" target="_blank"&gt;https://docs.databricks.com/api/workspace/introduction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For example, you can start by retrieving the full list of workspace users via the SCIM API, and then for each user (by ID or email) check their associated permissions:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests, json

host = spark.conf.get("spark.databricks.workspaceUrl")
token = dbutils.secrets.get("my-scope", "DATABRICKS_TOKEN")

# List all users
url = f"https://{host}/api/2.0/preview/scim/v2/Users"
resp = requests.get(url, headers={"Authorization": f"Bearer {token}"})
resp.raise_for_status()
data = resp.json()

for user in data.get("Resources", []):
    print(user["id"], user["userName"], user.get("displayName"))

# Lookup a specific user by email
user_email = "user@test.com"
url = f"https://{host}/api/2.0/preview/scim/v2/Users?filter=userName eq \"{user_email}\""
resp = requests.get(url, headers={"Authorization": f"Bearer {token}"})
print(json.dumps(resp.json(), indent=2))&lt;/LI-CODE&gt;&lt;P&gt;The response is a SCIM User document (e.g., id, userName, displayName, groups, entitlements, …).&lt;BR /&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 01:19:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/audit-access-rights/m-p/129182#M2585</guid>
      <dc:creator>WiliamRosa</dc:creator>
      <dc:date>2025-08-22T01:19:10Z</dc:date>
    </item>
  </channel>
</rss>

