An agent that calls tools across many systems usually gets authorization from a group or role list embedded in a SAML assertion or an OIDC token. That works for a human in a handful of teams. It fails quietly for an agent holding dozens or hundreds of group memberships, because the claim grows linearly while the limits protecting the identity provider and the service provider are fixed.
The limits are documented. Microsoft Entra ID emits at most 150 groups in a SAML assertion and 200 in a JWT, including nested groups, and when an identity exceeds that the provider omits group claims from the token entirely rather than trimming them Microsoft's group claims guidance. AWS rejects SAML responses larger than 128 KB, and Okta names "too many groups or roles" as the typical cause of that rejection Okta's support note on the AWS size limit. CA SiteMinder has truncated attribute values at a default of 1024 characters and logged a "Response attribute will be trimmed" warning that then breaks downstream authorization Broadcom's truncation article.
The asymmetry matters. A size limit produces a loud HTTP 400 with a clear error string. A count limit produces a valid token carrying no groups, which surfaces as "agent has no permissions" or fails with a misleading message. A harness that only watches for red errors will miss the case that hurts most.
Agents make this worse than humans because memberships accumulate without anyone consciously adding them. Identity governance research summarized by the Cloud Security Alliance found non-human identities outnumbering human ones by more than 90 to 1 in many organizations, with few organizations able to trace an agent's actions back to a human sponsor the CSA Agent Identity Governance Framework. The same paper notes that agents spawn child agents dynamically, each needing its own credentials and scope, and each another identity that can drift toward a claim limit.



