Get the daily emailDaily email
  1. Home
  2. Guides
  3. This story

Preserving user identity for ServiceNow calls with OBO token exchange in AgentCore Gateway

This guide configures AgentCore Gateway in Amazon Bedrock AgentCore for an on-behalf-of token exchange with Microsoft Entra ID, so an agent can call the ServiceNow REST API as the calling user. On each request the gateway swaps the inbound token for one…

Published Read the original

Ranked #25 of 25 on Wednesday, November 4

Preserving user identity for ServiceNow calls with OBO token exchange in AgentCore Gateway

Why it matters

User identity propagation is a core security problem for enterprise agents, and this is a concrete working implementation.

What happened

1 min read

This guide configures AgentCore Gateway in Amazon Bedrock AgentCore for an on-behalf-of token exchange with Microsoft Entra ID, so an agent can call the ServiceNow REST API as the calling user. On each request the gateway swaps the inbound token for one scoped to ServiceNow, which then applies that user's permissions. The pattern applies to other OAuth-protected REST APIs.

inscraper analysis

Our analysis

Agents calling APIs as the application itself breaks audit trails and least privilege; OBO is the standard, correct answer. The value here is the configuration detail across all three parties (Entra, ServiceNow, AgentCore), not novelty. It's AWS-specific, but the same pattern applies to any MCP gateway that supports token exchange.

More in Guides