Key takeaways
- A robot reaches SAP through SAP GUI screens with a Dialog user, or through RFC, BAPI or OData with a Communication or System user.
- The account's SAP roles decide what the robot can change, whichever route it uses.
- Acceptance testing should prove that SAP refuses operations outside the process scope.
- A credential vault protects the password but does not restrict the SAP account behind it.
A UiPath robot that posts invoices into SAP often holds more access than the job requires. The workflow describes the steps its designer intended. What the robot can actually do in SAP is decided by the account it runs under. The two need to be compared before go-live and again after every material change to the process.
Take a robot that records invoices for a single company code. If its account can also change a supplier’s bank details or post in another company code, a successful invoice test will not reveal it. The test proves that the planned task works. A second piece of evidence is needed: SAP refuses an operation outside the agreed scope. This is a design example, not a description of a customer incident.
Three questions, asked in this order, give the review its structure:
- How does the robot reach SAP: through SAP GUI screens or through a system interface?
- Which SAP user type fits that route?
- Which roles does the account hold, and how do we prove they allow nothing more?
Two routes into SAP: screens or an interface
A robot working through SAP GUI behaves like a person at a keyboard. It logs on to SAP GUI on the execution host, opens transactions, fills in fields and confirms screens. To SAP, this is an ordinary dialog session.
A robot or agent working through an interface never opens a screen. It calls an SAP function directly: an RFC-enabled function module, a BAPI or an OData service. In UiPath, the SAP BAPI activities are one way to do this. The robot never opens an SAP GUI session.
| Robot through SAP GUI | Robot or agent through an interface | |
|---|---|---|
| How it works | Drives screens in a dialog session | Calls RFC, BAPI or OData |
| SAP user type | Dialog | Usually Communication or System, depending on the interface |
| What limits the operations | Roles of the SAP account | Roles of the SAP account and the functions exposed |
| What else to review | The execution host and its session | The connection configuration and where its credentials are stored |
On both routes, what the robot can change in SAP depends on the account’s roles and authorisations. SAP states that an SAP GUI script runs with the rights of the user in whose context it is started. [2] Enabling SAP GUI Scripting is therefore not a separate permission to post documents or change master data.
The rest of this article concentrates on robots working through SAP GUI in SAP ECC and SAP S/4HANA. Role design, refusal testing and log correlation apply equally to interfaces. What changes is where the connection is reviewed: the call configuration and exposed functions take the place of the execution host.
Choose the user type for the route, not for the robot
In many organisations, a “technical account” simply means an account no person uses. In SAP, the user type has a precise meaning: SAP distinguishes dialog access, communication without dialog, and background processing. [4]
- Dialog users can log on to SAP GUI and are the right choice for a robot that drives screens.
- Communication and System users cannot log on in dialog. They suit interface calls and background processing, so a robot working through SAP GUI cannot log on with them.
- Service users allow dialog logon without a password-change requirement and are intended for shared access. They are a poor fit for a robot serving one process, because they make it harder to attribute operations to a specific automation.
The fact that software performs the task does not justify the System type. Equally, a GUI robot on a Dialog account is not a mistake, provided its roles are limited to the process.
A separate question is whose account the robot uses. An attended robot usually runs in an employee’s session and often logs on to SAP with that employee’s account; the review then covers that person’s actual roles. An unattended robot should run on a dedicated SAP account with an owner accountable for its scope, reviews and revocation. Attended and unattended are not SAP user types.
Choosing the user type does not settle SAP licensing either. That is a separate assessment.
Three places where a GUI robot gets its rights
A robot working through SAP GUI relies on three independent sets of permissions. Restricting one does not restrict the others.
UiPath Orchestrator
Here we review folders, roles, queues and credential assets, and separately who can publish packages, change configuration and start jobs. Access to one process should not grant control over other automations. UiPath recommends limiting robot permissions to the minimum the work requires. [1]
The execution host
Here we review the operating-system account behind the robot’s session: whether it has administrator rights, which folders it can write to and whether it can read files left behind by another process. A developer workstation’s configuration should never be copied to production unchecked.
The SAP account
This is where the roles that decide business operations live. It is the most important part of the review, and it applies to both routes.
These three areas usually have different administrators. Process documentation should therefore record in one place the Orchestrator account, the host account, the SAP account, the process owner and the justification for each level of access.
Derive the SAP role from the process
SAP_ALL contains every SAP authorisation. SAP recommends assigning it to no user at all, with the exception of an emergency account. [3] For a robot handling one slice of a process, it has no justification.
Removing SAP_ALL does not end the review. Several roles combined can still allow actions the robot does not need. The question is what the roles permit together: which operations, with which authorisation field values and in which organisational units. A list of transaction codes does not answer it.
Start from the business description. For the invoice robot, that might be recording a document in a named company code, reading the supplier data it needs and passing exceptions to a person. Changing bank details, approving payments and administering users stay out of scope. The SAP team selects the specific authorisation objects to match how the process is implemented.
Segregation of duties requires separate accounts, not merely separate scripts. If the recording step and the approval step share one fully privileged account, the separation exists only on the process diagram.
A credential vault does not restrict the account
In UiPath, the SAP password is held as a Credential asset in Orchestrator or in an external credential store connected to Orchestrator. [5] [7] The robot retrieves it with the Get Credential activity if its Orchestrator identity has rights to that asset. [6] The password should never appear in workflow code, a configuration file or a diagnostic message.
The vault protects the password. It does not reduce the rights of the SAP account behind it. Whoever can retrieve the password of an over-privileged account can perform everything that account allows.
That is why the review also covers who can change the package running in production. Being unable to read a password in the Orchestrator interface does not stop a modified automation from using it. Preparing a change and approving it for production should sit with different people. The design also needs to define password rotation, how the process behaves after a change and how it reacts to a locked account.
Acceptance means proving both success and refusal
STAUTHTRACE records the authorisation checks SAP performs while an account works. [8] It only shows the paths that were actually executed. It is neither a process specification nor proof that every recorded check should succeed.
A workable sequence: an agreed role in the test system, representative test cases, analysis of failed checks and a justification for every extension. Exception paths, such as data corrections, restarts after an interruption or a document needing a decision, are planned separately. Adding every authorisation found in the trace would simply replay the scope of the test without judging whether it is warranted.
The second half of acceptance is refusal testing. For the invoice robot:
- recording an invoice in company code A succeeds; the same operation in company code B is refused;
- reading supplier data succeeds; changing the supplier’s bank details is refused;
- the robot completes its own step but cannot approve the payment;
- once its access to credentials is withdrawn, the robot stops with a controlled error and does not fall back to another account.
For business operations, the refusal must come from SAP. A workflow without a “change bank details” step says nothing about whether the account could do it. An authorised tester makes the attempt on test data, with the same account and over the same route the automation uses. If the process uses both SAP GUI and an interface, both routes are tested.
The test record captures the expected result, the actual result, the account, the process version and an evidence reference. After any role change, the specific test can be rerun instead of relying on assurances.
Link the robot’s log to the change in SAP
UiPath keeps robot execution logs separate from the Orchestrator audit trail. [9] [10] Neither identifies the document created in SAP unless the automation records its number.
The automation should therefore log a shared run identifier alongside the document number SAP returns. SAP logs do not store the UiPath job identifier by themselves, and the available change documents need to be checked for each business object. The aim is to reconstruct which process version, on which SAP account and for which document performed the operation, and who approved it where approval was required. Full invoices and bank account numbers do not belong in the logs.
Revoking access needs the same precision. Stopping new jobs, handling sessions already running, withdrawing access to credentials and locking the SAP account are four separate actions. Disabling a trigger in Orchestrator does not remove the robot’s access to SAP.
AI agents work within the same limits
Adding an AI agent to the process does not change the access model. The agent does not log on to SAP itself: it acts through a robot on SAP GUI screens or through a tool that calls an interface. Either way, it is bound by the roles of the account that route uses. The design defines which data the agent may analyse, which operations it may propose and which tools it may call. An instruction in the model’s prompt is no substitute for restricted roles in SAP.
In the invoice example, the agent might classify an exception and the robot then performs a permitted operation. A supplier bank-detail change follows a separate verification path. This is SNOK’s architectural recommendation; no UiPath deployment provides this separation automatically. We cover related ground in our articles on agent governance in UiPath and AI access to SAP ECC without data replication.
What the review delivers
A SNOK review combines analysis of the UiPath process with an assessment of SAP authorisations. It covers the access route and user type, a map of accounts and credentials, the permitted operations, segregation-of-duties conflicts, refusal tests and the revocation procedure. The process owner gets a basis for deciding which rights to keep, which to restrict and which to move to a separate approval step.
The best starting point is a single automation and its actual route into SAP. The scope of an SAP security assessment then includes the touchpoints with UiPath, and the UiPath automation and SAP security teams work from one access map.
Sources
- UiPath: Deployment and Configuration Considerations, Orchestrator Standalone 2025.10. Accessed 23 November 2026.
- SAP: SAP GUI Scripting Security Guide, 8.00 PL06. Accessed 23 November 2026.
- SAP: Authorization Profile SAP_ALL, ABAP Platform 2022. Accessed 23 November 2026.
- SAP Learning: Maintaining and Evaluating User Data. Accessed 23 November 2026.
- UiPath: About Assets. Accessed 23 November 2026.
- UiPath: Get Credential / Get Orchestrator Credential. Accessed 23 November 2026.
- UiPath: Credential Stores. Accessed 23 November 2026.
- SAP: Using the System Trace to Record Authorization Checks. Accessed 23 November 2026.
- UiPath: About Logs. Accessed 23 November 2026.
- UiPath: Audit. Accessed 23 November 2026.
