Symptoms
- Many users cannot sign in to the workspace, or sign in and see no catalogs, tables or dashboards.
- Users show as Deactivated (or Active: Removed From EntraID with automatic identity management) in the account console.
- Jobs fail because their
run_asuser or owner is deactivated, or because the service principal they run as lost group membership. - Unity Catalog grants look correct in
SHOW GRANTS, but users getPERMISSION_DENIED: the group exists but has no members. - It started after someone edited the Users and groups assignment of the Databricks enterprise application, changed its scoping filter, replaced a group, or reconfigured provisioning.
When a user is removed from the scope of the account-level SCIM application, Databricks deactivates them in the account and every workspace. A deactivated identity cannot sign in or call APIs. The provisioning service runs on a cycle, so the damage arrives in waves.
Step 1: pause provisioning (5 minutes)
Stop the next cycle from removing more people. In the Entra admin center: Enterprise applications > (your Databricks SCIM app) > Provisioning > Stop provisioning. Or with Microsoft Graph:
SP_ID=$(az ad sp list --display-name "Azure Databricks SCIM Provisioning Connector" --query "[0].id" -o tsv)
JOB_ID=$(az rest --method get \
--url "https://graph.microsoft.com/v1.0/servicePrincipals/$SP_ID/synchronization/jobs" \
--query "value[0].id" -o tsv)
az rest --method post \
--url "https://graph.microsoft.com/v1.0/servicePrincipals/$SP_ID/synchronization/jobs/$JOB_ID/pause"
The display name is whatever your team named the app; check it in the portal first.
Warning
Do not use Restart provisioning with "clear current state" while the scope is still wrong. A full cycle re-evaluates every user against the broken scope.
Step 2: find what changed
Entra provisioning logs show each action and the reason:
az rest --method get \
--url "https://graph.microsoft.com/v1.0/auditLogs/provisioning?\$filter=activityDateTime ge 2026-11-15T00:00:00Z&\$top=100" \
--query "value[].{t:activityDateTime, action:provisioningAction, who:sourceIdentity.displayName, status:provisioningStatusInfo.status}" -o table
Look for disable and delete actions, then check the Entra audit log for changes to the app's assignments:
az rest --method get \
--url "https://graph.microsoft.com/v1.0/auditLogs/directoryAudits?\$filter=activityDateTime ge 2026-11-15T00:00:00Z and category eq 'ApplicationManagement'" \
--query "value[].{t:activityDateTime, activity:activityDisplayName, by:initiatedBy.user.userPrincipalName}" -o table
On the Databricks side, the audit system table shows account-level identity changes. Action names vary by release, so list them first:
SELECT event_time, action_name, user_identity.email AS actor,
request_params
FROM system.access.audit
WHERE service_name = 'accounts'
AND event_date >= '2026-11-15'
AND action_name ILIKE ANY ('%user%', '%group%', '%principal%')
ORDER BY event_time DESC
LIMIT 200;
Common causes:
| Cause | What you see | Fix |
|---|---|---|
| Group removed from the app assignment | Its members deactivated | Re-assign the group |
| Users moved into a nested group | Members of the nested group deactivated (Entra provisions only direct members of assigned groups) | Assign the nested group directly, or flatten |
| Scoping filter changed | Users outside the new filter deactivated | Revert the filter |
| Group deleted and recreated in Entra | New group provisioned with a new ID; old group emptied or removed | Re-apply grants to the new group or restore the deleted Entra group |
| Entra group deleted (automatic identity management) | Group disappears from Databricks | Restore the group from Entra deleted items within its retention window |
Step 3: fix the scope, then resume
Revert the assignment or filter. Restore a deleted Entra group if needed (deleted Microsoft 365 and security groups have different restore rules; check the current Entra docs):
az rest --method get --url "https://graph.microsoft.com/v1.0/directory/deletedItems/microsoft.graph.group" \
--query "value[].{id:id, name:displayName, deleted:deletedDateTime}" -o table
az rest --method post --url "https://graph.microsoft.com/v1.0/directory/deletedItems/<group-object-id>/restore"
Use Provision on demand for two or three affected users to confirm they come back active, then resume the job:
az rest --method post \
--url "https://graph.microsoft.com/v1.0/servicePrincipals/$SP_ID/synchronization/jobs/$JOB_ID/start"
Step 4: reactivate users that stay deactivated
Some users may not be re-activated by provisioning. Reactivate them directly with the account API (account admin required):
databricks account users list -o json \
| jq -r '.[] | select(.active == false) | [.id, .userName] | @tsv' > deactivated.tsv
while IFS=$'\t' read -r ID UPN; do
databricks account users patch "$ID" --json '{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [{"op": "replace", "path": "active", "value": true}]
}'
done < deactivated.tsv
Review the list before running the loop. It should contain only people who were removed by mistake, not leavers who were deactivated on purpose.
Caution
If provisioning is still scoped wrong, it will deactivate these users again on the next cycle. Fix step 3 first.
Step 5: check groups, grants and jobs
Groups that were emptied need their members back; check a few by name:
databricks account groups list --filter 'displayName eq "dbx-sales-analysts"' -o json \
| jq '.[0] | {id, members: (.members | length)}'
If a group was recreated with a new ID, Unity Catalog grants that pointed at the old group no longer apply. Re-apply them from your Terraform or grant scripts, or by hand:
SHOW GRANTS ON CATALOG sales_prod;
GRANT USE CATALOG, USE SCHEMA, SELECT ON CATALOG sales_prod TO `dbx-sales-analysts`;
Check that the group is still assigned to each workspace (Account console > Workspaces > Permissions).
For jobs, find recent failures and repair them once identities are back:
SELECT job_id, run_id, result_state, termination_code, period_start_time
FROM system.lakeflow.job_run_timeline
WHERE period_start_time >= '2026-11-15'
AND result_state = 'FAILED'
ORDER BY period_start_time DESC;
Confirm
- No unexpected deactivated users in
databricks account users list. - Affected groups have their expected member counts.
- A user from each affected group can query a table they normally use.
- Failed jobs repaired or rerun; provisioning logs show only
updateactions on the next cycle.
Prevent it next time
- Run production jobs as service principals, not users, so a provisioning mistake does not stop pipelines. See jobs fail after a user leaves.
- Assign only a few stable, flat groups to the provisioning app, and manage that assignment in code with a review step.
- Set the provisioning app's accidental deletions prevention threshold so a large deprovision is held for approval.
- Grant Unity Catalog privileges to groups through Terraform so grants can be re-applied in one run.
- Alert on bursts of
disableactions in Entra provisioning logs.
Get the weekly HubDatAI email
One email a week with everything new: posts, learning sessions and videos. Free, no spam, unsubscribe in one click. What you get