Is Account Group Member Databricks

Published
Length
3 min read

Luis Felipe Dias

All posts

The is account group member databricks function checks if a user belongs to an account group. It returns a true or false value during a live query to control data access. Data teams use this built-in check to enforce row filters and column masks across many workspaces. It relies on central identity groups rather than local workspace groups. How is account group member databricks works in practice Databricks manages user identities at two distinct levels. You can create groups inside a single

Cross-Account Access Delegation: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

The is account group member databricks function checks if a user belongs to an account group. It returns a true or false value during a live query to control data access.

Data teams use this built-in check to enforce row filters and column masks across many workspaces. It relies on central identity groups rather than local workspace groups.

How is account group member databricks works in practice

Databricks manages user identities at two distinct levels. You can create groups inside a single workspace or at the central account level. Central groups work across every workspace in your company. When an engineer or AI agent runs a query, the database checks their active identity.

The built-in check asks the central identity store if the current user belongs to a named group. If the check returns true, the query can read the protected rows or columns. If the check returns false, the database hides the rows or replaces the column values.

Data teams attach this check to Unity Catalog tables using row filter and column mask rules. When a user queries a table, Unity Catalog runs the group check in the background. Engineers do not need to rewrite their queries to include the group check.

AI agents and automated apps also trigger this function when they read tables. These apps log in with service principals instead of human user accounts. You can place service principals inside central account groups so the same table rules apply.

Account groups versus local workspace groups

Older Databricks setups used a legacy group check that looked at local workspace groups first. That created confusion when a local group and a central group shared the same name. A user might see different query results depending on which workspace they logged into.

The account-level check fixes this problem by ignoring local workspace groups. It only looks at groups synced to the central account console from your identity provider. This makes access rules behave the same way in every workspace across your team.

Cross-Account Access Delegation: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To make this work, admins must assign Unity Catalog to each workspace. They also need to sync users and groups from their identity provider to the account console. Once set up, one SQL rule protects the table everywhere.

Security tradeoffs of static roles and catalog rules

Central group checks solve many role management problems inside the data platform. Still, relying only on catalog roles leaves operational gaps for security teams. First, engineers and AI agents often connect to clusters using static tokens or shared service keys.

If a script or agent uses a shared service principal, the group check sees that shared identity. It does not see which human engineer or specific workflow triggered the agent. Everyone sharing that key gets the exact same group permissions during the session.

Second, catalog masks require manual setup on every single sensitive column across all catalogs. If a data engineer creates a new table and forgets to add the rule, raw data stays exposed. Queries on that table will return raw emails, phone numbers, card numbers, or national IDs.

Third, catalog group checks only evaluate yes or no membership at query start. They cannot pause a dangerous query to ask a human manager for live approval. They also do not apply automatic pattern matching to rewrite emails or card numbers in ad-hoc results.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

What is the difference between account group checks and legacy member checks?

The account group check only inspects central groups managed at the account level. The legacy member check looks at local workspace groups, which can vary between workspaces.

Can service principals and AI agents pass an account group check?

Yes, admins can add service principals to central account groups just like human users. When an AI agent runs a query with that identity, the check returns true.

Does an account group check mask sensitive data on its own?

No, the function only returns a true or false value for group membership. You must pair it with a column mask rule on each table to rewrite sensitive fields.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.