Your roles are approved. Your segregation of duties (SoD) rules pass testing. Then an AI agent connects through a service account and starts chaining actions together. Every step is permitted. The sequence may not be.
Role-based access control (RBAC) answers one question well: what may this identity access? AI agents raise harder questions: who started an action, on whose behalf, and whether it should run in this context. RBAC is still a sound foundation. It was not designed to answer them on its own.
What Role-Based Access Control gets Right?
RBAC links identities to permissions through roles. NIST’s David Ferraiolo and Rick Kuhn formalized RBAC in 1992. The NIST model became an ANSI/INCITS standard in 2004, revised in 2012.
It reduces administrative complexity and makes permissions easier to review, as a 2010 paper led by Kuhn notes. Mutually exclusive roles also support SoD by keeping conflicting duties apart.
SAP follows the same logic. In ABAP-based systems, authorization objects protect actions and data, and roles built in transaction PFCG bundle authorizations for users.
These strengths remain. The catch is what roles describe. NIST frames RBAC around the operations that people in particular jobs must perform. An AI agent is neither a person nor a job holder.
Why Traditional RBAC Struggles with AI agents
Agents don’t read job descriptions; they read prompts, tool outputs, and whatever lands in their context. OWASP’s 2026 LLM Top 10 lifted Excessive Agency to third, because “agentic deployments are where the damage is landing.”
The risk usually comes from an agent holding more functionality, permissions, or autonomy than its task needs. Roles can rein in the permissions, but four gaps remain wherever agents use real credentials.
Roles are set in advance, but agents improvise at runtime
A role is a permission slip signed before anyone knows where the trip is going. Even NIST is wrestling with this. Its February 2026 draft paper asks how least privilege works when actions “might not be fully predictable.”
Authorization checks also judge one request at a time, but risk often hides in the combination. OWASP’s list cites Simon Willison’s “lethal trifecta”: private data, untrusted content, and a way to reach the outside world. A service agent that reads customer records and inbound email, then sends replies, has all three.
Finer-grained roles sound like the fix, until they multiply into what Kuhn’s 2010 paper calls role explosion. Let roles set the ceiling and runtime checks judge each action. And think twice before handing one agent all three legs of the trifecta.
Logs name the account, not the agent behind it
Here’s an audit moment you don’t want. Three agents and a nightly job all post through one shared technical user. An auditor asks who released a blocked invoice, and the log offers one name: that user.
The role assignment proves the account could act, not which agent acted, who owns it, or why. For NIST, binding agent actions back to human authorization is still unfinished business.
Don’t wait for a standard: give each agent its own identity. Where you can, run each call in the requesting user’s context, not a generic, high-privileged identity, as OWASP advises.
Service accounts and bots overstay their welcome
Service accounts, API keys, and bots are enterprise IT’s houseguests: easy to invite, awkward to remove. The OWASP NHI Top 10 says these non-human identities (NHIs) are commonly over-privileged, because right-sizing them is difficult and slow. Its top risk is improper offboarding: identities left active after their job ends.
A technical user built for a one-off migration can still hold its roles years later. Hand it to an agent, and one hallucination or injected instruction can put every permission to work. Unlike a person, the agent gets no nagging feeling that something is off.
OWASP’s Top 10 for Agentic Applications gives this its own entry: identity and privilege abuse. So treat agent permissions like milk, not wine. Give them an expiry date, and pour them out when the use case ends.
No single system sees the whole workflow
One agent might add a supplier in a non-SAP procurement tool, then approve that supplier’s invoice in SAP. Each system waves through one ordinary step. Neither sees both, so a textbook SoD conflict sails past every single-system review.
Joint guidance from CISA and five partner agencies (May 2026) doesn’t sugarcoat it. It warns that “fragmented logs, opaque agent reasoning and emergent interactions obscure the decision path.”
So govern identities the way agents work: across systems. That means SoD rules and logs that span SAP and non-SAP applications.
A practical example: When an AI agent inherits too much access
This scenario is illustrative, not drawn from a specific customer or product.
A procurement agent reads supplier emails and data, then prepares purchase orders in SAP S/4HANA. To move fast, the project team gives it a broad API connection under an existing technical user. SAP designs its system and communication user types for background processing and dialog-free communication.
Over the years, that user gained approved roles to maintain supplier master data and create purchase orders. SoD reviews usually flag that pairing in one person’s hands.
Then a supplier email arrives with hidden instructions. The agent follows them, changing the supplier’s bank details and creating an urgent, high-value order. In this company, bank changes need no second sign-off, and interface orders skip approval, so payments flow to the attacker.
SAP logs both changes under the technical user. Investigators see the account, but not the agent, its owner, or the email behind it.
Now add governance around the role:
- The agent has its own registered identity and a named business owner.
- Its SAP role and tools allow reading data and drafting orders, not supplier master changes.
- Orders above a set value wait for human approval.
- Logs tie each transaction to the agent, its owner, and the triggering input.
The injected email now fails twice: the narrower role blocks the bank-detail change, and the order waits for a person. The role still sets the outer limit. The controls around it govern what happens inside.
What should complement RBAC in an AI-driven environment?
The joint guidance advises folding agent risk into existing frameworks and avoiding broad or unrestricted agent access. No single architecture fits every organization, but these controls can sit on top of roles:
- Least privilege, reviewed often. Scope each agent to its current task, and review that scope regularly.
- Distinct identities. Avoid shared or reused technical users, so each action traces to one agent.
- Ownership and lifecycle. Assign an accountable owner, and define onboarding, credential rotation, and offboarding.
- Context-aware authorization, where supported. Attribute- or policy-based checks weigh context a static role cannot. NIST’s zero trust architecture calls for access decided by dynamic policy.
- Approval for high-impact actions. OWASP suggests graduated enforcement: reversible, low-risk actions proceed, while irreversible ones go to a human.
- Traceable records. Log the agent, any human principal, the action, and the outcome.
- Cross-system governance. Apply one view of access risk across SAP and non-SAP applications.
- Timely revocation. Remove access when an agent, integration, or business need changes.
What this means for SAP security and identity governance
SAP authorization checks remain the final gate. SAP’s AI agent identity reference architecture (updated May 2026) keeps application checks built on established SAP authorization concepts. Around them, it adds dedicated agent identities in SAP Cloud Identity Services. It also adds policy enforcement points at several stages, one of which SAP lists for H2 2026.
Authorization roles decide what an identity can execute. Identity governance decides who holds those roles, for how long, and under whose ownership. Agents need both.
SAP landscapes also hold technical identities that predate any agent strategy. System and communication users run interfaces, background jobs, and remote function calls (RFCs), often with no person attached. SoD analysis protects only the identities it includes.
Practical priorities for SAP security teams:
- Discover every technical and agent identity that can reach SAP, including agents built outside SAP tools.
- Run the same SoD analysis on technical and agent identities that you run on people.
- Prefer principal propagation, which forwards the user’s identity, over shared technical users when a person starts the agent’s work.
- Keep evidence linking agent activity to the posted transaction.
For more on agent governance in SAP, read How AI Agents Are Changing SAP Security Governance.
Moving beyond roles to accountable AI execution
Roles will keep defining what an identity may access. As agents take on real work, organizations also need ownership, execution limits, and proof of what happened.
AccessHub.AI, Crave InfoTech’s access governance solution, is built to address ownership and traceability in SAP landscapes. It governs human, non-human, and AI agent identities under one model. Each agentic identity gets a named owner and a risk score. It traces activity from agent, through technical account, to the posted SAP transaction. It can also apply existing SAP GRC Access Control rule sets to machine and agent identities, extending current controls.
A practical first step is an inventory of every agent and technical account that can act in SAP. Explore AccessHub’s agentic identity governance or book a risk assessment with the Crave InfoTech team.

