Entra ID: groups overage (more than 200 groups) is not detected; the person is refused with a misleading reason #989

Closed
opened 2026-10-24 16:13:04 +00:00 by Cordy · 1 comment
Owner

Found in the #985 research (research-985-4 §4.2, research-985-5 §10).

When a person is in more than 200 groups, Entra leaves the groups claim out of the ID token and sends _claim_names.groups / _claim_sources instead (VERIFIED, Microsoft ID token claims reference). Cairn (oidclib.go:355-362) sees no groups and refuses with "the groups claim holds none of oidcAllowedGroups" (oidc.go:117), which sends the admin looking in the wrong place.

Fix (S). Detect _claim_names.groups; log WARN "the groups claim was left out by Entra (more than 200 groups); use app roles (oidcGroupsClaim: roles) or Groups assigned to the application"; count it for the Users & access facts row "sign-ins without a groups claim".

Note for the docs: "Groups assigned to the application" keeps the claim small but drops nested groups (VERIFIED).

Live test. Entra tenant, a user in more than 200 groups with oidcGroupsClaim: groups; confirm the token carries _claim_names.

Found in the #985 research (research-985-4 §4.2, research-985-5 §10). When a person is in more than 200 groups, Entra leaves the `groups` claim out of the ID token and sends `_claim_names.groups` / `_claim_sources` instead (VERIFIED, Microsoft ID token claims reference). Cairn (`oidclib.go:355-362`) sees no groups and refuses with "the groups claim holds none of oidcAllowedGroups" (`oidc.go:117`), which sends the admin looking in the wrong place. **Fix (S).** Detect `_claim_names.groups`; log WARN "the groups claim was left out by Entra (more than 200 groups); use app roles (`oidcGroupsClaim: roles`) or Groups assigned to the application"; count it for the Users & access facts row "sign-ins without a groups claim". Note for the docs: "Groups assigned to the application" keeps the claim small but **drops nested groups** (VERIFIED). **Live test.** Entra tenant, a user in more than 200 groups with `oidcGroupsClaim: groups`; confirm the token carries `_claim_names`.
Author
Owner

Fixed in v0.6.354 (PR #1004). Entra overage (_claim_names.groups) is detected:

  • a rate-limited WARN fires;
  • the sign-in is refused as "groups unknown", so nothing ends;
  • a per-instance counter feeds the Users & access row.

The live Entra test (a user in more than 200 groups) is still open. Closing; the missing-claim follow-up is #1003.

Fixed in v0.6.354 (PR #1004). Entra overage (`_claim_names.groups`) is detected: - a rate-limited WARN fires; - the sign-in is refused as "groups unknown", so nothing ends; - a per-instance counter feeds the Users & access row. The live Entra test (a user in more than 200 groups) is still open. Closing; the missing-claim follow-up is #1003.
Cordy closed this issue 2026-10-25 21:29:32 +00:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#989
No description provided.