ACME HQDemo work items and pages, made up for Emargen's demo. Not a real company.
Engineering / Engineering / Architecture decision records

ADR-010: Roles from Entra ID groups at every sign-in

By Marek Nowak · created 8 Apr 2024, 09:10 UTC · last updated 29 Sep 2025, 12:45 UTC · version 3

adrrolessamlentra-id

Status: accepted · Date: 8 April 2024 · Decided by: Marek Nowak, Rafael Duarte

Context

Clients on single sign-on want roles to follow their own directory: when someone joins the "Depot managers" group in Entra ID, they should hold the role in ACME without an administrator doing it twice. When they leave the group, the role should go. Administrators also give roles in the portal by hand, and those must not be wiped by a sign-in.

Decision

We considered reading groups from Microsoft's directory API on a schedule. It needs extra permissions in each client's tenant, which their IT teams refuse more often than not.

Consequences

Updates