An IdP claim cleanup lands and later every Grafana login works but the expected team roles stop being assigned.
A Grafana SSO login succeeds and users land as Viewers because the team claim moved into a nested groups object that the old role mapping expression never traverses
Authentication works, yet authorization degrades because the mapper still looks at the previous flat claim location.
Scenario
What to check first
- Identify the primary failure signal in the IAM scenario.
- Separate visible symptoms from the underlying technical dependency.
- Describe the safest recovery path and the follow-up prevention work.
Checking checklist
- Summarize the current impact and the last known change.
- Collect direct evidence from logs, runtime state, and configuration before changing anything.
- Separate immediate recovery from permanent prevention work.
Recovery and prevention
Inspect the exact IdP payload before editing Grafana org settings or manually assigning roles.
Questions worth viewing together
Community-field security problem inspired by Grafana community cases where nested group claim changes broke role mapping. SSO authorization failures often come from claim shape drift, not from authentication or token issuance failures.
Teams often blame Grafana org sync when the role mapping expression is still reading the old claim path.
Role mapping expressions should be regression-tested whenever IdP teams or groups claims are restructured.
Similar cases seen in the field