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