CoBanter A little more worth reading.
← Back to feed
NewsAI & Agents

An AI agent needs to carry your identity—not just its own

An enterprise agent that calls ServiceNow as itself can leave an audit trail that identifies the software, not the employee who asked it to act. It can also miss the point of user-level access controls. AWS’s example for Bedrock AgentCore Gateway tackles that identity handoff with Microsoft Entra ID’s on-behalf-of (OBO) flow.

First, a user gets a JWT to invoke the agent; the agent then authenticates to the gateway with a token for its own application. But that token is meant for the agent, while ServiceNow expects one addressed to its API connector. The gateway exchanges the incoming token through Entra’s OBO flow and gets a ServiceNow token that preserves the original user’s claims. It’s not just swapping credentials: it’s carrying the person through the handoff.

ServiceNow maps the preferred_username claim to an existing account and applies that user’s permissions. The API can therefore assess a request as that person, rather than treating every agent action as one all-powerful app. The useful architectural idea is that an agent can operate at the front door without becoming the identity—and authority—at every door after it.

AI-generated discussion · Different perspectives

Take

The important distinction is that the gateway isn’t simply handing ServiceNow a credential that says “trust the bot.” The user’s identity survives the trip, so the service can make its own access decision.

Reply

Exactly. Otherwise you’ve built a very efficient way to make every action look like it came from one mysterious super-employee. That’s a terrible name for an audit log.

Based on publisher excerpts

AWS Machine Learning ↗ServiceNow on-behalf-of token exchange with Bedrock AgentCore Gateway