yesterday
Hi everyone,
We have recently built our Databricks environment, with multiple workspaces and several user groups configured to manage access and permissions across different assets.
As the number of users, groups, and workspaces continues to grow, managing and monitoring permissions is becoming increasingly challenging.
I'm looking for a centralized way to monitor access and permissions across the entire Databricks environment.
Ideally, I would like to have a centralized permissions monitoring dashboard or solution that provides visibility into:
Access Overview: Who has access to which workspaces, catalogs, schemas, tables, volumes, and other Databricks assets?
Permission Changes: Who granted, modified, or revoked permissions, and when did the change happen?
Audit Trail: A historical record of all permission-related activities and changes.
Group & User Mapping: Visibility into which users belong to which groups and what level of access they inherit.
Access Monitoring: Identify users or groups with excessive permissions or potentially unnecessary access.
Centralized Dashboard: A consolidated view of permissions and access across all Databricks workspaces.
I wanted to check with the community:
Has anyone built a POC, dashboard, or framework to achieve this?
Are there any recommended best practices or existing solutions for managing and auditing permissions at scale across multiple workspaces?
Any suggestions, reference architectures, GitHub repositories, or experiences would be really helpful.
Looking forward to hearing your thoughts and learning from the community!
Thanks!
yesterday
Centralized permissions auditing on Databricks is direct as system.access.audit is an account level system table that records every permission change across workspaces. It contains details of who granted or revoked what, when, from where and on which object. You dont need a third party tool for this. You can combine it with Unity Catalog Permissions APIs to get full view of the state. You can enumerates the catalogs, schemas, tables and volumes using the UC APIs - call the Permissions REST endpoint for each and create a daily snapshot of grants to a Delta table. You can then pull users and groups from the SCIM API into a couple of tables so group grants can be expanded into the users who inherit them. You can use a bi tool for pages on access overview, permission changes, group/user mapping and excessive access.
Any grant whose principal is an email address is a review flag. The queries below is part of the solution
Permission changes: who granted/revoked what and when
SELECT event_time, user_identity.email AS changed_by,
request_params['securable_type'] AS securable_type,
request_params['securable_full_name'] AS securable,
ch.principal,
ch.add AS privileges_added,
ch.remove AS privileges_removed
FROM system.access.audit
LATERAL VIEW OUTER explode(from_json(request_params['changes'],
'array<struct<principal:string,add:array<string>,remove:array<string>>>')) c AS ch
WHERE service_name = 'unityCatalog'
AND action_name = 'updatePermissions'
AND event_date >= current_date() - 90
ORDER BY event_time DESC
yesterday
Hi @Niyojit, adding one shortcut to @balajij8's approach: for Unity Catalog you don't need to call the Permissions API object by object. system.information_schema already has the current grants:
SELECT 'CATALOG' AS level, catalog_name AS object_name, grantee, privilege_type, inherited_from
FROM system.information_schema.catalog_privileges
UNION ALL
SELECT 'SCHEMA', concat_ws('.', catalog_name, schema_name), grantee, privilege_type, inherited_from
FROM system.information_schema.schema_privileges
UNION ALL
SELECT 'TABLE', concat_ws('.', table_catalog, table_schema, table_name), grantee, privilege_type, inherited_from
FROM system.information_schema.table_privilegesSnapshot that into a Delta table on a schedule and you have the access overview, and the difference between two snapshots shows what changed, alongside the audit log. inherited_from tells you which parent a grant comes from, so you can tell direct grants from inherited ones.
Docs: TABLE_PRIVILEGES, SCHEMA_PRIVILEGES, CATALOG_PRIVILEGES
14 hours ago
Greetings @Niyojit, I did some digging and here is what I found.
You can build all of this with native pieces, and the thread already has most of the design. @balajij8's audit-log query covers grant history, @suranga's information_schema snapshot covers current grants, and @ivanvyd's validation step is worth doing before you schedule anything. There are a few gaps, especially if you want coverage beyond Unity Catalog data objects.
@suranga's UNION ALL leaves out volumes, which you asked about. Add system.information_schema.volume_privileges to it, and external_location_privileges and connection_privileges if those matter to you.
These views only return objects the querying identity has privileges on. As @ivanvyd pointed out, an identity with only MANAGE sees just its own grants there, so run the snapshot as an identity that can see everything, and spot-check it against SHOW GRANTS.
@balajij8's query catches Unity Catalog grant changes, which are logged at the account level with workspace_id = 0. The originating workspace is in request_params.workspace_id.
Workspace-object ACL changes are logged under other services: changeJobAcl under jobs, changeClusterAcl under clusters, and so on. Group membership changes show up as addPrincipalToGroup and removePrincipalFromGroup under accounts. Add those to the filter if you want the full picture.
system.access.audit keeps 395 days, and it is regional for workspace-level events and global for account-level events, which confirms @ivanvyd's point.
Jobs, clusters, warehouses, notebooks, dashboards, and serving endpoints are not in information_schema. Snapshot them with the workspace Permissions API, once per workspace.
No system table holds group membership, so use the account SCIM Groups API. One gotcha: since August 2025 the List endpoint no longer returns members, so call Get group details for each group. If you nest groups, expand them recursively.
Good starting flags:
ALL PRIVILEGES or MANAGE held outside your admin groups.account users on sensitive catalogs.Before you build the access-overview page, look at Governance Hub in the account console. It is in Beta, and an account admin enables it from Previews. Its Data Access page lists the securable objects each principal can access, which may cover that part without any code. It does not show change history, so you still need the audit-log piece.
On the Security Analysis Tool @saisaranv mentioned, use the GitHub repo rather than the 2023 announcement. SAT v1.0 is now a Databricks App that does permissions and resource analysis plus secret scanning, and its older posture checks have been retired.
The links below are to the AWS version of the docs.
If you found this answer helpful please check off "Accept as Solutions" so that others can have confidence in the answer.
Regards, Louis
yesterday
Did you get a chance to check the SAT : Security Analysis Tool from databricks ? This might help you to audit the entire ecosystem. We did to validate the dev instance and good one too.
Link : https://www.databricks.com/blog/announcing-security-analysis-tool-sat
🌟Learn. Build. Share. Grow. 🌟
Curiosity starts it, community finishes it.
Let's light up the Databricks Community! 🚀
9 hours ago
Thanks @saisaranv for sharing this but its more related to security of the databricks workspace.
yesterday
Centralized permissions auditing on Databricks is direct as system.access.audit is an account level system table that records every permission change across workspaces. It contains details of who granted or revoked what, when, from where and on which object. You dont need a third party tool for this. You can combine it with Unity Catalog Permissions APIs to get full view of the state. You can enumerates the catalogs, schemas, tables and volumes using the UC APIs - call the Permissions REST endpoint for each and create a daily snapshot of grants to a Delta table. You can then pull users and groups from the SCIM API into a couple of tables so group grants can be expanded into the users who inherit them. You can use a bi tool for pages on access overview, permission changes, group/user mapping and excessive access.
Any grant whose principal is an email address is a review flag. The queries below is part of the solution
Permission changes: who granted/revoked what and when
SELECT event_time, user_identity.email AS changed_by,
request_params['securable_type'] AS securable_type,
request_params['securable_full_name'] AS securable,
ch.principal,
ch.add AS privileges_added,
ch.remove AS privileges_removed
FROM system.access.audit
LATERAL VIEW OUTER explode(from_json(request_params['changes'],
'array<struct<principal:string,add:array<string>,remove:array<string>>>')) c AS ch
WHERE service_name = 'unityCatalog'
AND action_name = 'updatePermissions'
AND event_date >= current_date() - 90
ORDER BY event_time DESC
yesterday
Hi @Niyojit, adding one shortcut to @balajij8's approach: for Unity Catalog you don't need to call the Permissions API object by object. system.information_schema already has the current grants:
SELECT 'CATALOG' AS level, catalog_name AS object_name, grantee, privilege_type, inherited_from
FROM system.information_schema.catalog_privileges
UNION ALL
SELECT 'SCHEMA', concat_ws('.', catalog_name, schema_name), grantee, privilege_type, inherited_from
FROM system.information_schema.schema_privileges
UNION ALL
SELECT 'TABLE', concat_ws('.', table_catalog, table_schema, table_name), grantee, privilege_type, inherited_from
FROM system.information_schema.table_privilegesSnapshot that into a Delta table on a schedule and you have the access overview, and the difference between two snapshots shows what changed, alongside the audit log. inherited_from tells you which parent a grant comes from, so you can tell direct grants from inherited ones.
Docs: TABLE_PRIVILEGES, SCHEMA_PRIVILEGES, CATALOG_PRIVILEGES
17 hours ago
Before scheduling the Unity Catalog grant snapshot, test it under the identity that will run the job. Pick a table with a known SELECT grant to another group. Compare that table’s rows in system.information_schema.table_privileges with SHOW GRANTS ON TABLE catalog.schema.table. If the test identity has a direct MANAGE grant on the table, it also needs USE CATALOG and USE SCHEMA on the parent objects.
Databricks documents that INFORMATION_SCHEMA can show only that identity’s own grants when it relies on MANAGE. If the group’s grant appears in SHOW GRANTS and is missing from the snapshot, the snapshot is incomplete for that identity.
For the audit dashboard, collect workspace-level system.access.audit events in each region you cover. Account-level events are global.
Unity Catalog grant visibility · Audit event scope
14 hours ago
Greetings @Niyojit, I did some digging and here is what I found.
You can build all of this with native pieces, and the thread already has most of the design. @balajij8's audit-log query covers grant history, @suranga's information_schema snapshot covers current grants, and @ivanvyd's validation step is worth doing before you schedule anything. There are a few gaps, especially if you want coverage beyond Unity Catalog data objects.
@suranga's UNION ALL leaves out volumes, which you asked about. Add system.information_schema.volume_privileges to it, and external_location_privileges and connection_privileges if those matter to you.
These views only return objects the querying identity has privileges on. As @ivanvyd pointed out, an identity with only MANAGE sees just its own grants there, so run the snapshot as an identity that can see everything, and spot-check it against SHOW GRANTS.
@balajij8's query catches Unity Catalog grant changes, which are logged at the account level with workspace_id = 0. The originating workspace is in request_params.workspace_id.
Workspace-object ACL changes are logged under other services: changeJobAcl under jobs, changeClusterAcl under clusters, and so on. Group membership changes show up as addPrincipalToGroup and removePrincipalFromGroup under accounts. Add those to the filter if you want the full picture.
system.access.audit keeps 395 days, and it is regional for workspace-level events and global for account-level events, which confirms @ivanvyd's point.
Jobs, clusters, warehouses, notebooks, dashboards, and serving endpoints are not in information_schema. Snapshot them with the workspace Permissions API, once per workspace.
No system table holds group membership, so use the account SCIM Groups API. One gotcha: since August 2025 the List endpoint no longer returns members, so call Get group details for each group. If you nest groups, expand them recursively.
Good starting flags:
ALL PRIVILEGES or MANAGE held outside your admin groups.account users on sensitive catalogs.Before you build the access-overview page, look at Governance Hub in the account console. It is in Beta, and an account admin enables it from Previews. Its Data Access page lists the securable objects each principal can access, which may cover that part without any code. It does not show change history, so you still need the audit-log piece.
On the Security Analysis Tool @saisaranv mentioned, use the GitHub repo rather than the 2023 announcement. SAT v1.0 is now a Databricks App that does permissions and resource analysis plus secret scanning, and its older posture checks have been retired.
The links below are to the AWS version of the docs.
If you found this answer helpful please check off "Accept as Solutions" so that others can have confidence in the answer.
Regards, Louis
12 hours ago
Thank you for the correction. I thought to checking the SAT might help his needs and pointing to Git is I forgot.
🌟Learn. Build. Share. Grow. 🌟
Curiosity starts it, community finishes it.
Let's light up the Databricks Community! 🚀
9 hours ago
Hi @Louis_Frolio @ivanvyd @suranga @balajij8
Thanks for sending this let me work on it to build it!!!