In most SAP S/4HANA landscapes the technical users that run interfaces, batch jobs and integrations outnumber the people, and they are governed far less carefully. They hold passwords stored in RFC destinations, rights collected over years of "just make the interface work" fixes, and often no named owner. This guide treats them as non-human identities (NHIs): how to inventory and classify them, pick the right user type and credential, govern S/4HANA communication arrangements, run their lifecycle, and detect misuse. It is for SAP Basis, SAP security and identity governance teams. The authorisation model, firefighter access and gateway hardening are covered in the SAP Identity and Access Security Guide and the SAP NetWeaver and S/4HANA Basis Hardening Guide; this page goes deeper on the non-human side only.
This is an independent guide from NHI Mgmt Group, based on SAP's public documentation as of November 2026. It is not sponsored or reviewed by SAP. Product features change, so confirm settings against SAP's current documentation.
Key takeaways
- User type is the first NHI control. SAP's System and Communication types cannot log on through SAP GUI, so a stolen interface password cannot open an interactive session; Dialog and Service types can.
- Inventory from three places, not one. Users by type (SUIM, RSUSR200), RFC destinations with stored logon data (SM59) and S/4HANA communication arrangements together give the real NHI estate.
- Credential choice matters more than rotation. X.509 client certificates, SNC and OAuth 2.0 clients remove most stored passwords; rotate what remains on a schedule that updates the destination in the same change.
- Every technical user needs an owner, a purpose and an end date. Tie each one to a named interface, a business owner and a review cycle, and lock it when the interface is retired.
- Watch behaviour, not just configuration. A communication user that suddenly calls new function modules, or a system user seen from a new host, is the signal that matters most.
What counts as a non-human identity in S/4HANA
An SAP non-human identity is any user master record, certificate mapping or OAuth client that a system, program or job uses rather than a person. In an S/4HANA landscape they fall into six groups:
| NHI group | Typical examples | Where it is defined | Main risk |
|---|---|---|---|
| RFC interface users | Middleware, warehouse, MES and legacy ERP interfaces calling remote-enabled function modules | SU01 user; SM59 destination in the calling system | Broad S_RFC rights, password stored in many callers |
| Batch and job step users | Users named as the step user in background jobs | SU01 user; job definitions | Jobs inherit wide rights; user reused across many jobs |
| Communication users (S/4HANA communication management) | Users created for a communication system and arrangement such as SAP_COM_0053 | Maintain Communication Users app; Communication Arrangements app | Created by project teams, rarely reviewed after go-live |
| Web service and OData technical users | Integration platforms, portals and SaaS connectors calling APIs | SU01 user, ICF service, SOA Manager | Basic authentication with long-lived passwords in middleware |
| OAuth 2.0 clients | Applications registered in transaction SOAUTH2 | SOAUTH2 client with a dedicated System user | Client secrets and scopes not reviewed |
| Connector and tooling users | Identity governance connectors, monitoring, transport (TMSADM) and SAP standard users | SU01 user, often with broad read or user admin rights | Highly privileged, trusted by everyone, rarely owned |
The general lifecycle model for these accounts is in the Service Account Security Guide; the rest of this page applies it to SAP's own objects.
Choosing the right user type
SAP user master records carry a user type (field USTYP in table USR02). SAP's documentation describes five types, and the type decides whether interactive logon is possible and how password rules apply:
| Type (code) | SAP purpose | SAP GUI logon | Password behaviour (per SAP) | NHI use |
|---|---|---|---|---|
| Dialog (A) | Individual human users | Yes | System checks whether the password is expired or initial; users change their own | Never for an NHI |
| System (B) | Background processing and internal or external RFC communication | No | Password change requirement does not apply (cannot be initial or expired); only a user administrator changes it | Default for interface, batch and OAuth client users |
| Communication (C) | Dialog-free communication for external RFC calls | No | Expiry and initial status checked; whether a change is enforced depends on the logon method | External RFC callers where SAP or the partner product specifies it |
| Service (S) | Dialog user shared by a larger, anonymous group | Yes | No check for expired or initial password at logon; only an administrator changes it | Anonymous public services only, with minimal rights |
| Reference (L) | Non-person user that supplies additional identical authorisations | No logon possible | Not used for logon | Authorisation template, never a credential holder |
- Prefer System for machine-to-machine. SAP's own guidance for an OAuth 2.0 client in AS ABAP is a dedicated, unique user of type System, and the same logic fits most interface and batch users.
- Treat Communication users carefully. Because expiry may apply depending on the logon method, an expired password can break an interface; agree the rotation process before the expiry date, not after the outage.
- Find Dialog and Service users used by machines. A Dialog user named in an SM59 destination or used as a job step user is both an interactive login risk and a sign of shared human and machine use, which the OWASP NHI Top 10 lists as NHI10 Human Use of NHI. See the OWASP NHI Top 10 NHI10 Human Use of NHI Guide.
- Changing type is a change, not a fix. Moving a Dialog user to System changes password behaviour and can stop a program that relied on interactive features. Test in a non-production client first.
Building the inventory
No single SAP report lists every NHI. Build the inventory from these sources in each production client and in each system that calls production:
- Users by type: run report RSUSR200 (also reachable through SUIM). SAP documents selection by user type, days since last logon, days since password change, password status (valid, initial, inactive), validity and lock status. Select types System, Communication and Service first, then Dialog users with no recent interactive logon.
- Stored credentials in RFC destinations: in SM59, list ABAP (type 3) and TCP/IP (type T) destinations. On the Logon and Security tab, SAP shows whether the destination uses the current user, a trust relationship, SNC, or a stored user and password (the "Password status" field shows whether a password is saved). Each stored user is an NHI credential held in the calling system.
- Trust relationships: review SMT1 in each system. A trusted RFC relationship lets users of the calling system log on without a password, so the trusting system inherits the caller's security level.
- Communication arrangements: in S/4HANA, the Communication Arrangements, Communication Systems and Maintain Communication Users apps show which partner system and which user can call which communication scenario. The Maintain Communication Users app also shows the systems and arrangements that use each user, which is the quickest dependency map.
- OAuth 2.0 clients: list clients registered in SOAUTH2 and their System users.
- Job step users: list background jobs by step user and flag any personal user or Dialog user.
Record each NHI with a minimum set of attributes. A sample row is shown; the values are illustrative, not from a real system:
| Attribute | Sample value | Why it matters |
|---|---|---|
| User ID and client | RFC_WMS_PRD, client 100 | Unique key per system and client |
| User type | System (B) | Confirms no interactive logon |
| Interface and purpose | Warehouse goods movements, inbound RFC | Justifies the rights |
| Business owner and technical owner | Logistics process owner; integration team lead | Who approves access and answers for it |
| Callers | Middleware destination WMS_TO_S4 in two systems | Where the credential is stored |
| Credential type and last change | Password, changed 140 days ago | Drives rotation and migration priority |
| Roles and critical rights | One PFCG role, S_RFC limited to two function groups | Least privilege evidence |
| Review date and end date | Next review March; ends with WMS replacement | Stops orphaned accounts |
Ownership attestation is the step most programmes skip. The NHI Ownership Guide covers how to assign and re-confirm owners at scale.
Credentials: moving away from stored passwords
Most SAP NHI exposure comes from passwords stored in callers and middleware, which maps to OWASP NHI7 Long-Lived Secrets and NHI4 Insecure Authentication. The options below are listed from strongest to weakest for typical interfaces; the right choice depends on what the partner product supports.
| Option | Where it applies | What it removes | Operational cost |
|---|---|---|---|
| X.509 client certificate mapped to the user | HTTPS APIs; S/4HANA Cloud inbound communication users with the SSL Client Certificate method | Shared password in middleware | Certificate issuance, renewal and trust store (STRUST) management |
| SNC for RFC | ABAP and TCP/IP RFC destinations (types 3 and T) | Unencrypted RFC traffic and, with certificate logon, stored passwords | Supported security product and PSE management on both sides |
| OAuth 2.0 client (SOAUTH2) | Applications acting for a user on AS ABAP services | Long-term user password in the client | Client registration, scope review, secret handling |
| Current user or trusted RFC | System-to-system calls where the same user should act in both | Stored password in the destination | Trust becomes a privilege path; only from systems of equal or higher security |
| Stored user and password | Legacy interfaces with no alternative | Nothing | Rotation that updates every caller in the same change window |
- Certificates in S/4HANA Cloud: SAP's guidance for certificate-based inbound authentication is to upload a CA-signed certificate to the communication user, assign that user to the communication system for inbound calls, and select SSL Client Certificate in the arrangement. Keep the private key in the partner's secret store, not on a shared file share.
- Lock down destination use: SM59 lets you enter a value in the Authorization field; SAP then checks at runtime that the caller holds that value in S_ICF (field ICF_FIELD "DEST"). Use it on every destination that stores a privileged user, so not every user who can run RFC can borrow the stored identity.
- Rotation that does not break things: for passwords that must stay, rotate the SAP user and every caller in one change, verify with a test call, and keep the previous password available only until the test passes. A vault that can update middleware configuration reduces outage risk. See the Secrets Management Guide.
- Certificates expire too: track certificate expiry for every mapped NHI and alert well ahead. See the mTLS Guide for trust store discipline.
Least privilege for technical users
The authorisation model itself is explained in the SAP Identity and Access Security Guide. For NHIs the specific steps are:
- Remove SAP_ALL and SAP_NEW: no interface user should hold either. Replace with a single PFCG role per interface, built from a trace (STAUTHTRACE or ST01) of the interface running its full business cycle, including month-end runs.
- Narrow S_RFC: restrict RFC_NAME to the function groups or function modules the trace shows. Unified Connectivity (UCON) adds an allowlist of externally callable function modules and SAP positions it as a help for analysing required RFC authorisations and building RFC user roles.
- One NHI per interface: do not reuse a user across interfaces or partners. Reuse merges rights and makes revocation impossible without collateral outages (OWASP NHI9 NHI Reuse). See the OWASP NHI Top 10 NHI9 NHI Reuse Guide.
- Separate environments: a user in development or quality must never carry credentials that work in production, and a destination from a lower system into production with a stored privileged user is a direct path upward.
- Control user admin rights held by connectors: identity governance connectors often need S_USER_GRP and related objects. Restrict them to the user groups the connector manages and alert on any change to SAP standard users.
- Segregation of duties applies to NHIs: an interface user that can both create and approve, or post and pay, is an SoD conflict even though no person logs on as it. Include technical users in SoD rule sets.
Governing S/4HANA communication arrangements
Communication management bundles the NHI decision into four objects: a communication scenario (SAP's predefined set of inbound and outbound services, for example SAP_COM_0053 Purchase Order Integration), a communication system (the partner), a communication user and a communication arrangement that binds them. SAP notes that only users with the Administrator role use these apps, and that the Maintain Extensions on SAP BTP app can generate the system, user and arrangement from an integration token. That automation is useful and also a reason to review what has been created.
| Object | Governance question | Evidence to keep |
|---|---|---|
| Communication scenario | Is this scenario still needed, and do its inbound services expose more than the partner uses? | Business owner approval per scenario |
| Communication system | Is the partner still live and is its host or certificate current? | Partner contact, host, certificate expiry |
| Communication user | Is it used by exactly one system and one arrangement, with certificate rather than password? | "Where used" view from Maintain Communication Users |
| Communication arrangement | Does it use the strongest authentication method the scenario supports? | Arrangement settings at each review |
Run this review at least every six months and whenever a partner contract ends. Lock the communication user first, wait one business cycle for any unexpected failures, then delete the arrangement and user.
Lifecycle: create, change, retire
- Request: every new technical user starts from a request that names the interface, owners, user type, credential method, the callers and an end or review date. Reject requests for Dialog type or for SAP_ALL.
- Create: build in development, transport the role, create the user in production through the normal provisioning path, and record it in the inventory before first use.
- Change: role changes for NHIs go through the same approval as for people, with the owner signing off. A failed interface is not an emergency that justifies broad rights; use firefighter access for diagnosis instead. See SAP Firefighter Access.
- Review: owners re-confirm purpose and rights on a fixed cycle. The How to Run an Access Review for Service Accounts guide gives the review mechanics.
- Retire: when an interface ends, lock the user, remove stored credentials from every SM59 destination and middleware, remove trust entries, keep the user record locked for the retention period your audit needs, then delete. This is OWASP NHI1 Improper Offboarding territory. See the OWASP NHI Top 10 NHI1 Improper Offboarding Guide.
Implementation roadmap
- Weeks 1 to 4, see the estate: run RSUSR200 by type in every production client, export SM59 destinations with stored users, list communication arrangements and SOAUTH2 clients. Assign provisional owners.
- Weeks 4 to 8, close the worst gaps: lock technical users with no logon in the review window after confirming with owners, move Dialog-type NHIs to System in a test client first, remove SAP_ALL from technical users, and add S_ICF destination checks on privileged destinations.
- Months 3 to 6, least privilege: trace each interface, build per-interface roles, narrow S_RFC, run UCON in its logging phase before activating allowlisting. Pilot one interface family, then expand.
- Months 6 to 12, credentials: move APIs to certificates or OAuth, enable SNC for RFC, and shrink the stored-password list. Track the remaining passwords with a rotation date.
- Ongoing: lifecycle gates in the request process, six-monthly reviews, detection rules in the SOC.
Rollback: keep the previous role assignment and destination configuration exported before every change, and change one interface at a time so a failure points to one cause. Locking a user is reversible; deleting it is not, so lock first.
Decision guidance
- Small landscapes (one production system, few interfaces): a spreadsheet inventory, System user type, per-interface roles and an annual review are proportionate. Spend effort on removing stored passwords from middleware.
- Large landscapes (many systems, hundreds of interfaces): connect SAP users to the identity governance platform so technical users appear in the same review campaigns as service accounts elsewhere, and feed SAP logs into the SOC.
- Certificate or OAuth: choose certificates for system-to-system calls where no user context is needed; choose OAuth where an application acts for a user and needs scoped, revocable access.
- Trusted RFC or stored user: trusted RFC removes the password but extends trust; use it only from systems of equal or higher security, never from development or quality into production.
Detection and measurement
Configure the Security Audit Log (RSAU_CONFIG or SM19, read with RSAU_READ_LOG or SM20) to record RFC and logon events for technical users, and send them to the SOC. The SAP Threat Detection and Monitoring Guide covers the pipeline. Signals worth alerting on:
- Interactive logon by a technical user: any SAP GUI logon by a user in the NHI inventory, which should be impossible for System and Communication types and points to a type change.
- New source host: a technical user logging on from a host not in its documented callers.
- New function modules: RFC calls by an interface user to function modules outside its traced baseline.
- Changes to technical users: password resets, user type changes, role assignments and unlocks outside a change ticket.
- Destination changes: SM59 edits that add stored credentials or switch to a more privileged user.
| Metric | Target direction | Source |
|---|---|---|
| Technical users with a confirmed owner | Towards 100% | NHI inventory |
| Technical users of type Dialog or Service | Towards zero | RSUSR200 |
| Destinations with stored passwords | Falling each quarter | SM59 export |
| Technical users holding SAP_ALL or wildcard S_RFC | Zero | SUIM critical authorisation reports |
| Passwords older than the agreed rotation period | Falling | RSUSR200 days since password change |
| Communication arrangements reviewed in the last six months | 100% | Review records |
Framework mapping
| Control area | NIST SP 800-53 Rev. 5 | NIST CSF 2.0 | CIS Controls v8.1 | ISO/IEC 27001:2022 Annex A | Threat addressed (ATT&CK) |
|---|---|---|---|---|---|
| Inventory and ownership | AC-2 Account Management | PR.AA-01 | 5.5 Inventory of service accounts | 5.16 Identity management | T1078 Valid Accounts |
| User type and least privilege | AC-6 Least Privilege | PR.AA-05 | 6 Access Control Management | 8.2 Privileged access rights; 5.18 Access rights | T1078.001 Default Accounts |
| Credentials and rotation | IA-5 Authenticator Management; IA-9 Service Identification and Authentication | PR.AA-01 | 5 Account Management | 5.17 Authentication information; 8.5 Secure authentication | T1552 Unsecured Credentials |
| Monitoring | AU-6 Audit Record Review, Analysis, and Reporting | DE.CM | 8 Audit Log Management | 8.15 Logging; 8.16 Monitoring activities | T1021 Remote Services |
On the NHI-specific side, the controls on this page address OWASP NHI1, NHI4, NHI5, NHI7, NHI9 and NHI10. See the OWASP NHI Top 10 NHI5 Overprivileged NHI Guide.
Common failure patterns
- Inventory from SU01 alone: teams list users by type but miss the credentials stored in SM59 destinations in other systems, so rotation updates the user and breaks interfaces nobody knew about.
- Dialog users as interface users: often created during a project "temporarily", they allow interactive logon with a password held in middleware.
- One user for every interface: a single shared RFC user holds the union of every interface's rights and cannot be locked without stopping the business.
- Communication arrangements left after go-live: project test partners and generated BTP extension users stay active with password authentication long after the project ends.
- Lower systems trusted by production: trusted RFC or stored privileged users from development or quality into production let a less protected system act in production.
- Patching without identity review: SAP publishes Security Notes on Security Patch Day, the second Tuesday of each month. Apply them promptly, and review technical user rights at the same time, because a patched system still trusts an over-privileged interface user.
Practitioner checklist
- Run RSUSR200 by user type in every production client and record each technical user with owner, purpose and callers.
- Export SM59 destinations with stored logon data and link each to an inventory entry.
- Review SMT1 trust relationships and remove any from lower environments into production.
- Set every machine user to System (or Communication where specified); retire Dialog and Service types for machines.
- Remove SAP_ALL and SAP_NEW from technical users and build per-interface roles from traces.
- Narrow S_RFC and run UCON in logging mode before activating allowlisting.
- Add S_ICF Authorization values to destinations that store privileged users.
- Move APIs and S/4HANA communication users to certificates or OAuth; track remaining passwords with a rotation date.
- Review communication scenarios, systems, users and arrangements every six months; lock, wait, then delete.
- Send Security Audit Log events for technical users to the SOC and alert on interactive logons and new source hosts.
Standards and references
- SAP Help: User Types
- SAP Help: Users by Logon Date and Password Change (RSUSR200)
- SAP Help: Logon and Security Options for RFC Destinations
- SAP Help: Registering an OAuth 2.0 Client in AS ABAP
- SAP Help: Unified Connectivity (UCON)
- SAP Learning: Setting up Communication Management
- OWASP: Non-Human Identities Top 10 2025
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: SAP Identity and Access Security Guide · SAP NetWeaver and S/4HANA Basis Hardening Guide · SAP BTP Security Guide · Service Account Security Guide · Non-Human Identity (NHI) Guide