Teams usually test two things: a token with groups, and a token with an invalid signature. The empty-claim state sits between them and is the one that quietly breaks. It is a normal production condition with structural causes, not an anomaly.
The clearest cause is the token size limit. Microsoft Entra ID caps group claims at 150 entries in SAML assertions and 200 in JWTs, and when a user exceeds that limit the directory omits the group claims from the token entirely rather than truncating them Microsoft's group claims documentation. The Zero Trust developer guidance repeats the same limits and states that when the user is a member of too many groups, "there are no groups in the token," and the app must resolve membership some other way Microsoft's Zero Trust token guidance. An application that treats a missing claim as "allow" grants access to precisely the accounts whose entitlements are hardest to reason about.
The same gap exists in plain OIDC. The OpenID Connect Core specification defines a small set of standard profile claims and does not require groups or roles at all, so a provider is free to omit them the OpenID Connect Core specification. A login can be entirely valid while carrying zero authorization data. A field writeup on this problem makes the point directly: groups and roles are not core OIDC login claims, and whether an ID token, an access token, or the UserInfo response carries them depends on the provider's token profile the analysis of missing OIDC group claims. Practitioners hit this often enough that "no groups claim and no hasgroups either" is a recurring support question, with the fix being correct claim configuration on the API registration rather than the client the Stack Overflow thread on missing group claims.
Truncation is a second mechanism that produces the same result. SiteMinder enforces a default 1024-character limit on attribute length and trims oversized group attributes before the assertion reaches the service provider, which can break downstream authorization silently Broadcom's note on trimmed SAML attributes. At the other end, AWS rejects SAML responses larger than 128 KB outright, which is another way a large group set stops arriving in usable form Okta's article on SAML response size limits.
So the agent will meet absent or empty claims for structural reasons: overage, misconfiguration, attribute truncation, a directory lookup that never ran, or a user who genuinely belongs to no mapped group. The design question is not whether to handle it but what the safe handling is. Community reports show how painful the wrong answer is: one team described having to abandon directory groups entirely after discovering the limit the hard way the Esri community discussion on the 150-group limit.



