Permissions Analysis
Permissions Analysis is a graph-based tool that shows "who can access what resources" across your entire Databricks account, and where that access is risky.
Permissions Analysis may have incomplete and point-in-time data. Outputs are visibility and audit aids, not authoritative compliance determinations.
What Permissions Analysis does
Permissions Analysis transforms the Databricks permissions into a queryable graph database, enabling you to:
- Query Access Patterns: Find all resources a user/group/service principal can access—including indirect access via group membership and parent resource inheritance
- Reverse Lookup Security: Discover all principals (users, groups, service principals) that have access to a specific resource
- Detect Escalation Paths: Identify privilege escalation risks by finding paths from any principal to admin roles (Account Admin, Metastore Admin, Workspace Admin, Catalog Owner)
- Analyze Impersonation Risk: Discover lateral movement opportunities where users can modify jobs or clusters that run as elevated service principals
- Generate Compliance Reports: Produce audit-ready reports showing over-privileged users, orphaned resources, and high-risk principals
Common Use Cases
Getting Started
Step 1: Run Data Collection
The SAT app provisions a "SAT Permissions Analysis - Data Collection" job and runs it on a schedule. To run it on demand:
- Open the app and go to the Data Collection page
- Run "SAT Permissions Analysis - Data Collection"
- Allow 10-30 minutes for completion (varies by account size)
The collection job queries Databricks APIs to build a complete graph of your environment's identities, resources, and permission relationships.
Step 2: What the collection builds
Data collection and the account reports are produced by the /notebooks/brickhound/
notebooks, which the app runs as jobs — you don't open or run them by hand.
They populate the graph and brickhound_* tables that the app reads. For
reference, here's what each produces:
| Notebook (collection engine) | Purpose | Example question answered |
|---|---|---|
01_principal_resource_analysis.py | Query access patterns | "What tables can john.doe@company.com access?" "Who can access XYZ resource" |
02_escalation_paths.py | Find privilege escalation paths | "Can this contractor reach Account Admin?" |
03_impersonation_analysis.py | Analyze impersonation risks | "Who can run jobs as elevated service principals?" |
04_advanced_reports.py | Generate compliance reports | "List all users with access to 50+ resources" |
05_share_to_account.py | Detect & optionally remediate resources shared to all account users | "Which dashboards/Genie Agents/Apps were shared with everyone?" |
06_privileged_non_idp_identities.py | Detect & optionally remediate privileged identities that are not IdP-managed | "Which non-IdP groups / direct users hold Account Admin?" |
07_denylist_candidates.py | Rank account groups by inactive members for the access denylist | "Which IdP groups' members aren't using Databricks?" |
05–07 are audit-log / account-SCIM based rather than graph based, so they do not require the data collection job to have run first. Each writes its own brickhound_* table and has a scheduled job:
05_share_to_account.py→brickhound_shared_to_account. Report-only by default; setremediate=yesto remove the "account users" ACL entry (the SAT service principal must be a member of each affected workspace).06_privileged_non_idp_identities.py→brickhound_privileged_non_idp. Flags non-IdP (noexternalId) groups with Account/Workspace Admin, and users/service principals with those roles assigned directly. Opt-in remediation removes theaccount_adminrole via SCIM.07_denylist_candidates.py→brickhound_denylist_candidates. Ranks IdP-managed (external) account groups by inactive-member count (inactive = nosystem.access.auditactivity in the look-back window — a heuristic for the Automatic Identity Management "Inactive: No usage" status). Feeds the Account Denylist Builder tab. AIM caveat: under Automatic Identity Management, external group memberships are resolved just-in-time and are not returned by the account SCIM Groups API, so member-based ranking can be empty even for populated groups; in that case use the Entra ID dynamic-group rule builder in the app tab instead.
Step 3: Explore in the app
Permissions Analysis is built into the SAT app — no separate app to deploy.
Open it at: https://<workspace-url>/apps/security-analysis (or Compute → Apps → security-analysis), then use the Principal Analysis and Resource Analysis pages.
The app provides:
- Interactive search for principals and resources
- Escalation paths visualization
- Impersonation analysis reports
- Account Denylist Builder (inactive-user group candidates + an Entra ID dynamic-group rule builder)
- Security reports including:
- Secret scope access
- High privilege principals
- Over-privileged users
- Orphaned resources
- Resources shared to all account users (read-only view of the latest detection run)
- Privileged non-IdP-managed identities (read-only view of the latest detection run)

User Authorization
The app is intended for workspace and account admins. So that the app
cannot act as a privileged proxy beyond each caller's Unity Catalog
grants, the SAT install configures user authorization on the app
declaratively (via DABS or Terraform) — the sql scope required by
the Statement Execution API is set automatically. No manual UI step
is required.
When user authorization is configured, the app constructs a per-request
WorkspaceClient bound to the caller's forwarded OAuth token and Unity
Catalog enforces the caller's grants on the Permissions Analysis tables.
Required Unity Catalog grants (admin-only). Grant the users or
group who will run permissions analyses SELECT on the three Permissions Analysis
tables in the SAT analysis schema, e.g.:
GRANT SELECT ON TABLE `<catalog>`.`<schema>`.brickhound_vertices TO `<admin_group>`;
GRANT SELECT ON TABLE `<catalog>`.`<schema>`.brickhound_edges TO `<admin_group>`;
GRANT SELECT ON TABLE `<catalog>`.`<schema>`.brickhound_collection_metadata TO `<admin_group>`;
Without these grants, opening the app shows a friendly banner naming the missing tables instead of a generic error.
Manual override. If you need to add or remove scopes manually, open the app in the Databricks UI (Compute → Apps → security-analysis → Edit → User authorization) and edit the scope list. The IaC default of
["sql"]is sufficient for normal use.SP fallback. If user authorization ever gets cleared (no scopes configured), the app automatically falls back to its service principal identity and a one-time warning is logged. Functionality is unchanged. Re-add the
sqlscope to restore per-user enforcement.
Re-consent after an upgrade
If you upgrade an install where the app previously ran without user
authorization, each user who had already opened the app re-consents once — they
see the friendly "missing the sql scope" banner until they do. The quickest
fix is to open the app URL in a private/incognito window (fresh session, the
platform prompts for consent immediately); clearing cookies for the workspace
domain or revoking the prior authorization from the user's connected-apps list
work too. Fresh installs declare user_api_scopes: ["sql"] from the start, so a
first open prompts for the right scope automatically.
Key Capabilities
Query Access Patterns
Find all resources accessible by a specific principal, including:
- Direct permissions
- Group memberships (including nested groups)
- Inherited permissions from parent resources
- Service principal impersonation
Example Query: Determine what resources the principal john.doe@company.com can access.
Reverse Lookup Security
Discover all principals with access to a specific resource:
- Users with direct access
- Groups with access (and their members)
- Service principals with access
- Inherited access paths
Example Query: Identify all principals that can access the production.finance.revenue table.

Detect Escalation Paths
Identify privilege escalation risks by finding paths to:
- Account Admin
- Metastore Admin
- Workspace Admin
- Catalog Owner
Example Query: Determine whether the principal contractor@external.com can reach Account Admin privileges.
Analyze Impersonation Risk
Discover lateral movement opportunities:
- Users who can modify jobs that run as service principals
- Service principals with elevated privileges
- Clusters configured to run as specific service principals
Example Query: Identify principals that can run jobs as elevated service principals.
Detect Shares to All Account Users
Find resources shared with the built-in account users group — which grants access to every user in the account:
- dashboards
- AI/BI Genie Agents
- Databricks Apps
Detection reads the audit log (system.access.audit) account-wide, so it captures shares across every running workspace without needing the permissions graph. Optional, opt-in remediation removes the offending ACL entry.
Example Query: List every dashboard, Genie Agent, and App shared with all account users in the last 30 days, and optionally revoke that access.
Detect Privileged Non-IdP Group Identities
Surface privileged access that bypasses your identity provider's governance:
- Groups that are not IdP-managed (no
externalId) holding Account Admin or Workspace Admin - Users and service principals with those roles assigned directly
Detection uses the account SCIM API (account-wide) plus workspace admins group membership. Optional, opt-in remediation removes the account_admin role via SCIM.
Example Query: List every locally-managed group and every directly-assigned user that holds Account Admin.
Build an Account Denylist
Help scale the account access denylist:
- Inactive-user group candidates — account groups ranked by how many members have no recent
system.access.auditactivity (good groups to deny without disrupting active users) - Entra ID dynamic-group rule builder — a guided builder that emits dynamic membership rule syntax (guest users, mail/UPN domain match, department, company, disabled accounts), combinable with AND/OR, so a single denylist entry can cover thousands of identities
Example Query: Which IdP groups have the most inactive members, and what Entra rule denies all guest users?
Generate Compliance Reports
Produce audit-ready reports showing:
- Over-privileged users (access to 50+ resources)
- Orphaned resources (created by departed users)
- High-risk principals (multiple escalation paths)
- Secret scope access patterns
Best Practices
- Regular Data Collection: Run the data collection job regularly (weekly or bi-weekly) to maintain an up-to-date permissions graph as your environment changes.
- Web UI for Ad-Hoc Queries: Use the web UI for ad-hoc queries and quick access audits. Use the notebooks for automated reporting and compliance checks.
- Point-in-Time Data: Permissions data represents a point-in-time snapshot. For critical access reviews, ensure data collection has run recently.
Learn More
- Usage Guide - Instructions on running SAT workflows
- Installation Guide - Set up SAT and Permissions Analysis
- GitHub Issues - Report issues or request features