---
id: TIE-AGT-007
title: "Enterprise-managed cross-app access for AI agents"
url: https://exchange.trevonix.com/patterns/tie-agt-007-enterprise-managed-cross-app-access-for-ai-agents
version: "1.0"
maturity: reference-build
collection: "Agent identity"
category: "Delegation and authorisation"
last_reviewed: 2026-11-24
problems: ["Shadow AI and agent sprawl","OAuth consent sprawl","Over-privileged agents","Agents using human or shared credentials","Central revocation of agent access"]
standards: ["Identity Assertion JWT Authorization Grant (IETF OAuth working group draft)","OAuth 2.0 Token Exchange (RFC 8693)","JWT Profile for OAuth 2.0 Authorization Grants (RFC 7523)","OAuth 2.0 Identity and Authorization Chaining Across Domains (IETF draft)","OpenID Connect"]
recipes: {ping: documented, okta: reference-build, entra: documented, saviynt: documented, misc: documented}
license: CC BY 4.0
publisher: Trevonix
---

# Enterprise-managed cross-app access for AI agents (TIE-AGT-007)

**Intent:** Let the enterprise identity provider, not each user's consent click, decide which AI agents may reach which third-party apps on a user's behalf, and keep that decision revocable in one place.

AI agents connect to SaaS apps and MCP servers through per-user OAuth consent that IT cannot see or revoke centrally. Cross App Access (XAA) moves that decision to the identity provider: the agent gets an ID-JAG from the IdP and trades it for a scoped access token at the app.

## In short

- Today each user clicks "Allow" when an AI agent asks for access to their SaaS apps; IT cannot see those grants, review them or revoke them in one place.
- With **Cross App Access (XAA)** the IdP that already handles single sign-on decides: the agent exchanges the user's ID token at the IdP for an **Identity Assertion JWT Authorization Grant (ID-JAG)** for one target app, only if an admin-managed connection allows it.
- The agent presents the ID-JAG to the **target app's own authorisation server**, which still issues and controls its access tokens. Disable the connection at the IdP and no new access is granted.

## Problem

AI agents are most useful when they can reach the apps people already use: the ticketing tool, the document store, the CRM, the code repository, and increasingly the MCP servers in front of them. Connecting them usually means a per-user OAuth consent screen. Each user decides, often by habit, which agent gets which scopes on which app.

The result is consent sprawl. Security teams cannot list which agents hold access to which apps for which users, cannot apply the same rules everywhere, and cannot cut off an agent across all users quickly. Long-lived refresh tokens from those consents sit in agent platforms long after people have moved on. Asking users to judge OAuth scopes for an AI agent is a security control nobody is trained to operate.

## Use it when

- Workforce agents need to reach SaaS apps or MCP servers that users already sign in to through your enterprise IdP.
- You want IT, not individual users, to decide which agents may reach which apps.
- You need to revoke an agent's access to an app for everyone at once.
- Both the agent (requesting app) and the target app support XAA, or you control the target app's authorisation server.

## Avoid it, or add more, when

- The target app does not support XAA and you do not control its authorisation server. Use brokered or managed consent instead, and record the grants.
- The agent acts with no user. Use the agent's own identity and machine-to-machine access.
- The target app is federated to a different IdP that does not trust yours. XAA needs a shared trust relationship.

## Forces

- **Central control against app autonomy.** The IdP should decide who may connect; the app should still control its own tokens and scopes.
- **User convenience against oversight.** No consent prompts is pleasant for users and removes a moment of user awareness.
- **Standards maturity against urgency.** The grant is an IETF working group draft; product support is growing but uneven.
- **Volume against cost.** Some vendors meter ID-JAG issuance; heavy agent use can hit plan limits.

## Solution

Use the enterprise IdP as the broker for agent-to-app access. The admin defines a managed connection: this agent may reach this app's resources, for these users, with these scopes. When a user works with the agent, the agent exchanges the user's identity assertion at the IdP for an ID-JAG addressed to the target app's authorisation server. That server validates the ID-JAG against the IdP's keys, applies its own policy and issues a short-lived access token. The agent calls the app's API or MCP server with that token.

![Diagram across two trust domains. In the enterprise domain: the user signs in to the AI agent through the enterprise IdP with SSO and the agent receives an ID token. Step 2: the agent sends a token exchange request to the IdP with the ID token, asking for an ID-JAG for the target app. The IdP checks](https://exchange.trevonix.com/img/TIE-AGT-007/tie-agt-007-solution.png)

*The IdP issues an ID-JAG only for admin-approved connections; the target app's own authorisation server issues the access token.*

*Roles*

| Role | Who plays it | Responsibility |
| --- | --- | --- |
| Requesting app | The AI agent (or the app that hosts it) | Holds the user's ID token, requests the ID-JAG, redeems it at the target |
| Enterprise IdP | Your SSO identity provider | Signs users in; checks the managed connection; issues the ID-JAG |
| Managed connection | Admin configuration at the IdP | Which agent may reach which app, for which users and scopes |
| Resource authorisation server | The target app's own OAuth server | Validates the ID-JAG, applies its own policy, issues short-lived access tokens |
| Protected resource | The target app's API or MCP server | Accepts access tokens issued by its own authorisation server |

How it works

1. **Sign in.** The user signs in to the agent with SSO through the enterprise IdP; the agent receives an ID token for the user.
2. **Request an ID-JAG.** The agent calls the IdP's token endpoint with a token exchange request: the ID token as subject token, the requested token type ID-JAG, and the target app's authorisation server as audience.
3. **IdP decides.** The IdP checks that a managed connection allows this agent to reach this app for this user, then issues an ID-JAG naming the user, the agent and the audience.
4. **Redeem.** The agent sends the ID-JAG to the target app's authorisation server with the JWT bearer grant and authenticates as itself.
5. **App decides.** The target authorisation server validates the ID-JAG against the IdP's published keys, maps the user, applies its own scopes and issues a short-lived access token.
6. **Use.** The agent calls the app's API or MCP server with that token.

*The two requests*

```http
# 1. At the enterprise IdP: ID token -> ID-JAG
POST https://idp.example.com/oauth2/v1/token
grant_type=urn:ietf:params:oauth:grant-type:token-exchange
&requested_token_type=urn:ietf:params:oauth:token-type:id-jag
&subject_token=<user's ID token>
&subject_token_type=urn:ietf:params:oauth:token-type:id_token
&audience=https://auth.tickets.example.com
&scope=tickets.read

# 2. At the target app's authorisation server: ID-JAG -> access token
POST https://auth.tickets.example.com/oauth2/token
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
&assertion=<ID-JAG>
```

> **Why two authorisation servers:** Because the target app's authorisation server issues the final token, the app keeps control of its own scopes, lifetimes and revocation. The IdP controls whether an agent may ask at all.

## Design rules

1. **Admins own connections, not users.** Every agent-to-app connection is created, reviewed and removed at the IdP.
2. **One connection per agent and app.** Never one broad connection for all agents.
3. **Narrow scopes and resource indicators.** Connections name the specific resources and custom scopes the agent needs.
4. **Short-lived final tokens.** The target authorisation server issues tokens measured in minutes.
5. **Register agents first.** Only registered agents with owners can be requesting apps (see TIE-AGT-001).
6. **Plan for revocation.** Disabling a connection stops new ID-JAGs; decide how existing tokens are revoked at the target.
7. **Monitor issuance.** Watch ID-JAG volumes per agent and app, both for misuse and for plan limits.

## Anti-patterns

| Anti-pattern | What goes wrong |
| --- | --- |
| Per-user OAuth consent for every agent | Nobody can see or revoke the grants centrally; users approve broad scopes by habit |
| Shared API key for the agent in each SaaS app | Every user's requests look the same; one key leak exposes everyone's data |
| IdP issues access tokens directly for the third-party API | The target app loses control of its own tokens and scopes |
| Connection covering all agents | One compromised agent inherits every agent's access |
| Disabling the connection and assuming access stopped | Access tokens already issued may keep working until they expire |

## Benefits

- One place to grant, review and revoke agent access to apps.
- No consent prompts for users, and no consent decisions left to them.
- The target app keeps control of its own tokens.
- Agent requests carry the user's identity, so the app can apply the user's own permissions.

## Costs and risks

- Both sides must support the grant; support is still growing.
- The specification is an IETF draft and may change.
- Some vendors meter or license ID-JAG issuance.
- Revocation of tokens already issued depends on the target app.

## Recipes

### Ping Identity

*Maturity: Documented; last verified 2026-11.*

Ping's token exchange and JWT bearer support can implement the same two-leg flow; check current native ID-JAG support before you design. Written from Ping documentation; not lab-tested by Trevonix for this pattern.

*Components*

| Component | Role in this pattern |
| --- | --- |
| Token exchange in PingOne or Advanced Identity Cloud | Building block for issuing assertions in exchange for a user's token |
| JWT bearer grant at the resource | Lets a resource authorisation server accept a signed assertion from a trusted issuer |
| AI agent registration | The requesting agent's identity |

Approach

1. Check current Ping documentation for native Identity Assertion JWT Authorization Grant support in your platform before you design; Ping engineers co-author the IETF draft.
2. Where native support is not available, use RFC 8693 token exchange at your Ping authorisation server for the first leg, and configure the target authorisation server to accept JWT bearer assertions signed by your Ping issuer for the second leg.
3. Register the agent and limit, per target audience, which agents may obtain assertions.

Gotchas

- Without native support you are building an equivalent of XAA, not XAA itself; interoperability with third-party apps that expect ID-JAGs is not guaranteed.

### Okta

*Maturity: Reference build; last verified 2026-11.*

Okta issues ID-JAGs from its org authorization server for admin-managed resource connections on the AI agent, and its custom authorization servers redeem them for scoped access tokens.

*Components*

| Component | Role in this pattern |
| --- | --- |
| AI agent (Directory > AI Agents) | The requesting app; holds the client credential it uses for both exchanges |
| Linked OIDC web app | How users sign in to the agent; supplies the user's ID token |
| Resource connection | The admin-managed connection: which resource, which resource indicator, which scopes |
| Org authorization server | Issues the ID-JAG in exchange for the user's ID token |
| Custom authorization server | Acts as the resource authorisation server for Okta-protected resources: redeems the ID-JAG with the JWT bearer grant |

Before you start

- Earlier guides used catalogue apps named "XAA Resource App" and "XAA Requesting App" and a **Manage Connections** tab. Okta has replaced them with AI agent registration and **Resource connections**; follow the current help pages.
- Without an Okta for AI Agents subscription, XAA as part of SSO is limited to 250 ID-JAG tokens per user, per resource app, per month.
- For Okta-protected resources you need API Access Management (custom authorization servers).

Configure Cross App Access for an AI agent

1. Register the agent under **Directory > AI Agents**, link the OIDC web app users sign in with, and give the agent a key-based credential (private key JWT).
2. On the custom authorization server that protects the resource (**Security > API > Authorization Servers**), add a custom scope such as `tickets.read`.
3. Add an access policy rule on that server that allows the **JWT Bearer** grant type for the AI agent as client, includes the audience and custom scope, applies to the right users or groups, and sets a short access token lifetime.
4. Open the AI agent, go to the **Resource connections** tab and select **Add resource connection**. Choose the authorization server (ID-JAG) resource type, set the **Resource indicator** URLs, the scopes and, for third-party resource apps, the agent's client ID registered in that app.
5. Activate the agent. Sign in as a test user, exchange the user's ID token for an ID-JAG at the org authorization server, then redeem the ID-JAG at the custom authorization server and call the resource.

Gotchas

- Okta strips system scopes such as `openid`, `profile` and `email` during the ID-JAG exchange and returns `invalid_scope`; request a custom scope.
- The client assertion is built twice, once per token endpoint, each time with the `aud` of the endpoint it targets.
- The ID token for step 1 must come from the org authorization server, not a custom one.
- Disabling a connection blocks new ID-JAG exchanges; access tokens already issued keep working until they expire.

Check it works

- The ID-JAG's audience is the custom authorization server, and its subject is the test user.
- The final access token carries only your custom scope and expires in minutes.
- The System Log shows both exchanges attributed to the AI agent.

### Microsoft Entra

*Maturity: Documented; last verified 2026-11.*

Entra does not document ID-JAG issuance today; the nearest equivalent is admin-consented on-behalf-of access for agent identities. Written from Microsoft documentation; not lab-tested by Trevonix for this pattern.

At the time of writing, Microsoft Entra ID does not document issuing Identity Assertion JWT Authorization Grants. For apps registered in Entra, use the agent on-behalf-of flow (see TIE-AGT-002) with admin consent to the agent's delegated permissions, which gives central control over which agents may reach which APIs. For third-party SaaS apps, prefer admin consent over user consent and review the agent's grants regularly.

Configure the nearest equivalent

1. In **Entra ID > Enterprise apps > Consent and permissions**, restrict user consent so users cannot grant agents access to apps on their own.
2. Grant agents the delegated permissions they need through admin consent, per API.
3. Review agent identities' permissions and grants on a schedule, and remove unused ones.

### Saviynt

*Maturity: Documented; last verified 2026-11.*

Saviynt finds agent-to-app grants that bypass central control and puts the remaining connections under review. Written from Saviynt's published material; not lab-tested by Trevonix.

*Capabilities used*

| Capability | Role in this pattern |
| --- | --- |
| AI posture management | Finds OAuth grants between AI agents and SaaS apps that bypass central control |
| Ownership and access reviews | Sponsors certify each agent's app connections |

Configure

1. Discover AI agents' connections to SaaS apps, including user-consented OAuth grants.
2. Flag connections that should move to IdP-managed access, and track them to closure.
3. Certify each agent's remaining app connections with its sponsor on a schedule.

### Auth0 (as resource app)

*Maturity: Documented; last verified 2026-11.*

Auth0 can be the resource authorisation server that accepts ID-JAGs from an enterprise IdP. Written from Auth0's documentation; not lab-tested by Trevonix for this pattern.

Auth0 can act as the resource application's authorisation server in Cross App Access, accepting ID-JAGs from an enterprise IdP such as Okta, so SaaS builders on Auth0 can let their customers' agents connect without user consent.

Configure (Auth0 as resource app)

1. Federate the Auth0 tenant with the enterprise IdP that will issue ID-JAGs.
2. Register the requesting app (the agent) as a client of your Auth0 tenant.
3. Enable Cross App Access for your API and map scopes the agent may receive.
4. Test with an ID-JAG from the enterprise IdP and confirm the issued token's scopes and lifetime.

## Verification tests

| Test | Expected result |
| --- | --- |
| Agent requests an ID-JAG for a connected app | Issued; audience is the app's authorisation server |
| Agent requests an ID-JAG for an app with no connection | Refused by the IdP |
| Agent requests a scope outside the connection | Refused, or scope removed |
| Redeem an ID-JAG at a different app | Refused: wrong audience |
| Disable the connection, then request again | Refused; existing tokens expire on schedule |
| Check the target app's audit log | Shows the user and the agent client |

## Maturity and verification

**Reference build.** Trevonix has built Cross App Access end to end on Okta, with an AI agent reaching protected resources through an ID-JAG and a custom authorization server, in a lab tenant (November 2026). The Ping Identity, Microsoft Entra, Saviynt and Auth0 recipes are written from vendor documentation and have not yet been lab-tested by Trevonix for this pattern.

> **A moving standard:** The Identity Assertion JWT Authorization Grant is an IETF working group draft, and vendor admin experiences have changed during 2026. Check current documentation before you build.

## Frequently asked questions

**What is Cross App Access?**

It is the informal name for the Identity Assertion JWT Authorization Grant: an IdP-issued, signed assertion that lets an app obtain an access token from another app's authorisation server, based on the user's single sign-on.

**How is this different from brokered consent?**

Brokered consent still asks each user to consent, but the IdP stores and brokers the tokens. XAA removes user consent and puts the decision with the admin. Use XAA where both sides support it, and brokered consent elsewhere.

**Does XAA work for MCP servers?**

Yes, where the MCP server's authorisation server accepts ID-JAGs. Okta, for example, documents token exchange for MCP servers protected by its custom authorization servers.

## References

- [IETF draft: Identity Assertion JWT Authorization Grant](https://datatracker.ietf.org/doc/draft-ietf-oauth-identity-assertion-authz-grant/)
- [RFC 8693: OAuth 2.0 Token Exchange](https://www.rfc-editor.org/rfc/rfc8693)
- [RFC 7523: JWT Profile for OAuth 2.0 Client Authentication and Authorization Grants](https://www.rfc-editor.org/rfc/rfc7523)
- [Okta Developer: Cross App Access concepts](https://developer.okta.com/docs/concepts/xaa)
- [Okta Help: Configure the Cross App Access connection](https://help.okta.com/oie/en-us/Content/Topics/Apps/apps-config-xaa-connection.htm)
- [Okta Developer: MCP server token exchange](https://developer.okta.com/docs/guides/ai-mcp-server-token-exchange/main/)
- [Auth0: Cross App Access](https://auth0.com/docs/ai-agents-mcp/cross-app-access)

---

Source: https://exchange.trevonix.com/patterns/tie-agt-007-enterprise-managed-cross-app-access-for-ai-agents. © Trevonix. Licensed CC BY 4.0. Provided as is, without warranty; see https://exchange.trevonix.com/about#disclaimer.
