Ranked #25 of 25 on Wednesday, November 4
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…
Ranked #25 of 25 on Wednesday, November 4
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 readThis 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.
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.