Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› Why does the audience claim matter in delegated…
Authentication, Authorisation & Trust

Why does the audience claim matter in delegated Microsoft Graph access?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 22, 2026 Domain: Authentication, Authorisation & Trust

The audience claim tells Entra which resource the token was issued for. In an OBO exchange, the gateway must present a user token minted for the gateway itself so Entra can issue a new token for Graph. If the audience is already Graph, there is nothing to exchange and the flow no longer fits the middle-tier pattern.

Why the audience claim controls delegated Graph access

In delegated Microsoft Graph access, the audience claim is what proves the token was minted for the middle tier that is doing the on-behalf-of exchange. If the gateway sends a token already issued for Graph, Entra treats it as a token for the final resource, not as a user token the gateway can swap. The claim therefore protects the boundary between “token for me” and “token for Graph.”

That distinction matters because delegated flow logic depends on the gateway being an actual intermediary, not just a pass-through. A middle tier that receives a Graph audience token has no valid exchange path left, so the platform cannot distinguish delegation from direct resource access. The result is usually a broken flow, but the security significance is that the token audience also encodes where authority begins and ends.

For engineers, the useful mental model is simple: the audience claim is part of the token’s destination binding. In a correct on-behalf-of design, the user token is aimed at the gateway, then exchanged for a new token aimed at Graph. That two-step structure is what preserves delegated access semantics and keeps the gateway from being treated as if it were Graph itself.

What fails when the audience is wrong

When the audience claim is mis-set, the failure is usually architectural rather than subtle. The token may still be validly signed and still represent the user, but it is invalid for the exchange the gateway is trying to perform. That breaks downstream authorization decisions because the resource server and the middle tier no longer agree on what the token is meant for.

This also creates an easy implementation trap during integration work. Teams sometimes test with a token copied from a client app or API call and assume any bearer token carrying user claims should work in the middle tier. In delegated access, that assumption is wrong: the token must be issued for the gateway’s own audience if the gateway is expected to redeem it for Graph.

The practical implication is that audience validation is not just a parsing detail. It is part of enforcing the intended trust boundary for delegated access, especially when multiple apps, APIs, and service layers sit between the user and Graph.

How to reason about audience, delegation, and token exchange

The clean way to think about the audience claim is as a control on token reuse. It prevents a token minted for one resource from being repurposed as though it were meant for another. That is why on-behalf-of works only when the gateway presents a token with the correct middle-tier audience and then requests a new token for the target API.

For delegated Microsoft Graph access, this means the gateway should not attempt to shortcut the flow by accepting a Graph token as input to the exchange. If the token was already minted for Graph, there is no delegation step left to perform. The access pattern has shifted from middle-tier delegation to direct resource presentation, and the platform will not treat it as the same thing.

That is also why consent and app registration details matter. The audience claim reflects the resource boundary that Entra recognizes, so the application and the API need to line up with the intended trust relationship. A correct flow depends on the gateway being registered and addressed as the intermediary resource, not merely as a caller that happens to hold a user token.

Risk and Threat Considerations

Misunderstanding audience can turn a delegated flow into an authorization confusion problem. If teams accept the wrong token shape, they may accidentally design an integration that blurs which component is authorized to act and for which resource, which can lead to broken delegation, incorrect token handling, or overbroad trust in a token presented to the wrong service.

Failure mechanism: A token minted for Graph cannot be exchanged as though it were a token minted for the gateway, so the on-behalf-of pattern fails and the middle tier loses the ability to prove it is acting as an intermediary.

Impact: Delegated access breaks, token handling assumptions become unreliable, and the integration may drift toward insecure pass-through or ad hoc workarounds that weaken the intended resource boundary.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-9 — Service Identification and AuthenticationCovers service-to-service token handling in delegated API access.
AC-3 — Access EnforcementAudience binding enforces which resource a token may be used against.
Recommendation — Validate service tokens against the intended audience before exchanging or forwarding them. Enforce resource-specific access checks at the token consumption point.
OWASP API Security Top 10API2 — Broken AuthenticationWrong audience handling breaks API token validation and delegated access.
Recommendation — Reject API tokens whose audience does not match the receiving resource.

Practitioner Guidance

What to verify: Confirm that the token presented to the gateway was minted for the gateway’s audience, not for Graph, before you debug consent or permission issues. If the audience is wrong, treat the problem as a flow design issue first, not a permissions issue.

Common mistake: Do not test delegated Graph access with a bearer token simply because it contains user claims. In this pattern, the claim set is not enough, the audience must match the exchange step the gateway is actually performing.

Decision rule: If the gateway needs to exchange the token, the token must be audience-bound to the gateway. If the token is already audience-bound to Graph, use it as a direct resource token only when that is the intended pattern, not as input to an on-behalf-of exchange.

Practitioner takeaway: The audience claim determines whether the token belongs to the middle tier or the resource server, and that boundary is what makes delegated access work correctly.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org