AI agents acting for users: how to secure calls to SAP APIs and MCP servers
community.sap.comQuestion: MD-Saad_1634, answer: AlexandrePassarelli (SAP Community) · 16 October 2026 How do you secure AI agents that call SAP APIs and MCP servers on behalf of users? Go to source ↗Why it's worth reading
How do you secure agents that call SAP APIs and MCP servers on behalf of users? The question is open-ended; the one answer is thorough. The agent acts as the user, not as an all-powerful technical user: on SAP BTP through a destination with OAuth2UserTokenExchange or OAuth2SAMLBearerAssertion, on-premise through the Cloud Connector’s short-lived X.509 certificate. No token passthrough – the MCP specification explicitly forbids it. Read-only by default, confirmation before every change, minimal scopes and two logs: SAP records the what, the agent has to supply the why, with a correlation ID. Still unsolved: data coming out of SAP that looks like instructions, and telling user calls from agent calls in the log.
Nobody has a finished answer, the respondent admits. His is still better than most architecture slides on the subject.