Keep user identity when agents call ServiceNow via AgentCore Gateway
Configure Amazon Bedrock AgentCore Gateway to perform Microsoft Entra ID on‑behalf‑of token exchanges so AI agents call ServiceNow REST APIs under the calling user's identity.
AI generated — machine-made illustration, not a photograph of the event.
Expect one to a few days of configuration work for a small team; the change preserves audit trails and reduces the risk of agents using the application's own credentials.
What actually changed
Amazon's Bedrock AgentCore includes a gateway capability that can perform an on‑behalf‑of (OBO) token exchange with Microsoft Entra ID. Instead of downstream REST calls arriving as the application, AgentCore Gateway can be configured so the call carries the originating user's identity. You set the token exchange on the gateway target and the gateway performs the exchange on each request, allowing agents to call ServiceNow while keeping the calling user attached to the request.
Who it affects
- Teams that run AI agents which call enterprise REST APIs protected by OAuth, specifically organisations using ServiceNow and Microsoft Entra ID.
- Security, compliance and audit teams who rely on user‑level logging and least‑privilege controls; the pattern preserves the calling user so logs and access checks are applied per user rather than per application.
What it costs or what it replaces
- The announcement does not state pricing. Costs will depend on your existing Bedrock/AgentCore usage and any cloud identity configuration.
- This replaces the pattern where agents call downstream APIs using the application's credentials and where user identity is lost in the request chain. In production you can pair identity propagation with Amazon Bedrock Guardrails to filter harmful content and validate agent inputs and outputs.
What we don't know
- Exact configuration steps, API calls or console locations required to set up the token exchange on a gateway target.
- Any limits, latency impact or throughput implications of performing the token exchange on each request.
- Pricing changes, quota effects, or IAM policy templates tied to the gateway OBO flow.
What to do next
- Inventory prerequisites this week: confirm you have an Amazon Bedrock AgentCore environment, a ServiceNow REST API to call, and Microsoft Entra ID controlling your user identities. Note any compliance requirements for preserving user identity.
- Configure the gateway target to perform the OBO token exchange: create or update an AgentCore Gateway target and enable token exchange with Microsoft Entra ID so requests to ServiceNow carry the calling user's identity. Test with a development agent and verify that ServiceNow records the caller as the user rather than the application.
- Before rolling to production, add Amazon Bedrock Guardrails to the pipeline to validate agent inputs and outputs and to filter harmful content, and confirm audit logs and access controls behave as expected.
- Source: AWS Machine Learning Blog Read Full Article from AWS Machine Learning Blog
Links above go to the original publisher. Signalcraft states the consequence; it does not reproduce their text.
- agentcore gateway
- on-behalf-of
- microsoft entra id
- servicenow api
- token exchange
- amazon bedrock guardrails
0 comments
No comments yet. If you have run any of this, that is the most useful thing you could add.