Securing SAP AI agents — identity, access and the agent gateway
As of 2026-11-05
A security-focused module on how SAP positions AI agents as identities: agent identities stored in SAP Cloud Identity Services beside human ones, user context carried by token exchange instead of token passthrough, and an Agent Gateway that exposes an A2A interface to third-party agents and enforces policy at three points. Every claim is labelled documented (SAP Architecture Center, SAP Help, 12 May to 26 Oct 2026) or catalogue only (nine SAP TechEd 2026 sessions, 27-28 October, including gateway onboarding through SAP for Me). It stays out of prompt injection (C120) and teaches the layer under them: who the agent is, whose authority it carries and where access is decided.
What you will learn
- Draw the hop-by-hop identity chain of an agent call (user, Joule, gateway, agent, MCP server, backend) and state at each hop which principal the backend authorises
- Write an MCP token-exchange design sheet per RFC 8693 with one least-privilege scope per tool and a rule that rejects token passthrough
- Describe which of the four SAP Cloud Identity Services parts (Identity Directory, Identity Authentication, Identity Provisioning, Authorization Management) holds or enforces what for an agent identity
- List the two status caveats SAP's pages carry (agent-to-API point in H2 2026, bidirectional A2A not yet supported) and the three policy enforcement points of the Agent Gateway
- Label every claim in a client document as documented or catalogue only, citing page or session code and date
- Run a six-test negative test pack and a revocation drill, and separate the agent gateway from SAP Enterprise AI Gateway (GA planned for Q1 2027 per SAP's TechEd Innovation News Guide, 27 Oct 2026)
Why an agent is not a user, and SAP's reference model
You advise a customer who wants AI agents (SAP's Joule agents, agents built in Joule Studio, or agents from Microsoft, Google or a partner) to act inside an SAP landscape, and you will use the SAP Architecture Center pages 140bdb, 137800 and 98efa0 as primary sources. The security lead asks: "Which identity does the agent have, whose authority does it carry, and where is access decided?" This module answers that question hop by hop. It does not repeat prompt injection and content filtering (C120), protocol mechanics of MCP and A2A (C132) or Joule activation and roles. The platform underneath is SAP Business AI Platform, which the SAP Sapphire 2026 keynote article describes as bringing together SAP BTP, SAP Business Data Cloud and AI Foundation.
Two evidence labels are used throughout. Documented means stated on an SAP Architecture Center, SAP Help or SAP Learning page. Catalogue only means stated only in an SAP TechEd 2026 session description; a session description is not a product announcement. Put one of the two labels on every claim you write in a client document.
Prerequisites
- Completion of Joule Rollout — Activation, Roles, Identity and Tenancy or equivalent experience with Joule roles and identity
- Working knowledge of MCP and A2A at the level of “MCP & A2A for SAP Systems” and of OAuth 2.0 authorization-code flows
- Optional: read-only access to the customer's identity-provider and SAP Cloud Identity Services documentation to ground the trace
Outcomes
- Tell a security lead, with source and date, which parts of SAP's agent identity model are documented and which are only described in the TechEd catalogue
- Produce a hop-by-hop identity trace for one agent scenario with token, issuer, audience, logged identity and revocation per hop
- Review a custom MCP server or agent endpoint against the token-exchange rule before anyone builds it
- Write an agent identity lifecycle card: owner, review date, deprovisioning trigger and revocation steps
- Keep gateway-dependent promises out of client plans until the gateway's status is confirmed for the client's tenant
Full module with the Consultant plan — €19.90/month. The full module adds: the decision framework · the end-to-end scenario walkthrough · the KPI scorecard · the anti-patterns · the code blocks · the knowledge check.
Related guides
These guides cite this page as a source.
Open missions
38 live roles and contracts in SAP AI & Joule right now — see the SAP AI & Joule missions · freelance SAP contracts.