cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

PIM for Groups with Databricks: users appear in group without activating, nothing shows in PIM to ac

Charansai
New Contributor III

Hi everyone,

We’re setting up just-in-time read access to a Unity Catalog catalog for a small audit team using Microsoft Entra PIM for Groups, and I’d like to check whether our setup is right.

Setup

  • Azure Databricks with account-level SCIM provisioning from Entra ID.
  • An Entra security group created through our IaC pipeline with no members. The group is synced to the Databricks account and holds the workspace assignment (User), USE CATALOG, USE SCHEMA and SELECT on the catalog, and CAN USE on a SQL warehouse.
  • The intent is that users are eligible members in PIM for Groups, activate for a few hours with a justification, get added to the group, and lose access when the activation expires.

Issue

  • In the Databricks Account console, the group shows 5 users as members, even though nobody has activated anything.
  • In PIM > My roles > Groups > Eligible assignments, there are no results to activate.

Questions

  1. Does this mean the users were added as direct or Active members instead of Eligible, and that they currently have access without activating?
  2. What’s the recommended way to make sure membership only comes from PIM activation and can’t be added directly (e.g. role-assignable groups, restricting group owners)?
  3. With SCIM, membership changes take about 20 to 40 minutes to reach Databricks. Is automatic identity management a better fit for PIM-based access, and does it pick up activation and expiry faster?
  4. Has anyone run this pattern in production, and are there any gotchas with sessions or tokens continuing after the activation expires?

Thanks in advance!

3 REPLIES 3

rachelwilson
New Contributor II

yeah if they show as members in the databricks account group that usually means they ended up as active or direct members in entra, not just eligible in pim, so the grants are probably live now. scim only syncs actual membership, it doesnt understand eligible, so check the group in entra under members vs pim eligible assignments and remove any direct adds from iac or provisioning scope. automatic identity management does pick up changes a lot faster than the 20 to 40 min scim cycle and is a better fit for short activations, but it still wont fix an eligible vs active mixup. also watch existing sessions and tokens after expiry, they may not drop the instant the group membership goes away so keep activations short.

ethan_parmer
New Contributor II

Hi @Charansai — we use a similar pattern for audit access in a regulated (GxP) environment, so taking your questions in order:

1. Why the 5 users are already members. Eligible PIM members aren’t actual group members until they activate, and SCIM provisioning only syncs actual members. So if Databricks shows them, they’re active members somewhere. Check:

  • Entra → PIM → Groups → your group → Assignments. Look at the Active tab, not just Eligible.
  • The group’s Entra audit log, to see who added them. Microsoft notes that changes made through the regular Groups blade by admins or owners override PIM.
  • The Databricks side. If your IaC also manages membership (e.g. Terraform databricks_group_member), those memberships live in Databricks, and SCIM won’t remove them.

2. Restricting membership to PIM only. Remove all group owners, assign members only as Eligible through PIM, and require justification (and approval, if your process needs it) on activation. A role-assignable group raises the bar further, since only Privileged Role Admins can change its membership. That property can only be set when the group is created, so you’d have to recreate the group.

3. SCIM vs automatic identity management (AIM). AIM is a better fit for just-in-time access. It refreshes group membership during authentication: browser logins resync after 5 minutes, and other requests refresh between 10 and 40 minutes. One catch: AIM doesn’t remove memberships that SCIM created. If you switch, clean up the SCIM-synced memberships through the SCIM API, and don’t run both on this group.

4. Gotchas when activation expires. Unity Catalog checks group membership when a query runs, so access ends once Databricks sees the removal. Expect a lag of up to roughly the sync interval, and document it if this is for auditors. For evidence, pair the PIM activation history with system.access.audit to show who queried what during each window.

Ethan

datarich
Databricks Employee
Databricks Employee

Hi, your setup is the right idea. A few pointers:

The 5 members: yes, they most likely have access right now. Databricks doesn't know about PIM eligibility. It just sees whoever is in the group. So those users were probably added as normal or Active members instead of Eligible, either in Entra or directly in Databricks. Check the group's Members tab and PIM Active assignments in Entra. Then remove them, re-add them as Eligible, and confirm the Databricks group shows 0 members. "My roles" only shows your own eligible assignments, which is why it's empty.

Keeping PIM as the only way in:

  • Use a role-assignable group. You have to set this when you create the group, and it limits who can change membership.

  • Keep owners to a minimum and put the Owner role under PIM too, since owners can add members directly.

  • Leave "Immutable external groups" on in Databricks so nobody can edit membership locally.

  • Make sure your IaC creates the group but doesn't manage its members.

SCIM vs automatic identity management: go with automatic identity management. It reads membership straight from Entra, so a browser login picks up changes within about 5 minutes. Tokens, jobs and BI tools can take up to about 40 minutes. One catch: it won't remove members that SCIM originally synced, so clean those up when you switch.

After expiry: access is removed at the next membership refresh, not the moment PIM expires, so expect a short lag. Tokens aren't revoked, they just lose the group's permissions once the refresh happens. For an audit group, I'd limit PATs and stick to browser or OAuth sign-in.

Docs: