Security Architecture
Architect / Cross-trackintermediate

Identity and Authentication Architecture Across Hybrid SAP Landscapes

Design a coherent identity and authentication architecture spanning ECC, S/4HANA, and BTP using centralized identity providers, SSO protocols, and provisioning services.

Explanation

Identity and authentication architecture determines how users prove who they are before authorization decisions ever happen. In a hybrid SAP landscape that mixes ECC, S/4HANA (on-premise or private cloud), and BTP-based extensions, the biggest architectural risk is identity fragmentation: separate user stores, inconsistent password policies, and duplicated provisioning processes that create both security gaps and operational overhead. The modern architectural pattern centralizes authentication through a corporate identity provider (IdP), federated to SAP systems using standard protocols. For S/4HANA Cloud and BTP, SAP's Identity Authentication Service (IAS) commonly acts as the intermediary trust broker, accepting SAML assertions or OpenID Connect tokens from the corporate IdP and issuing SAP-recognized assertions to downstream applications. For on-premise ECC and S/4HANA, SAML 2.0 based SSO can be configured directly against the corporate IdP or via IAS as a proxy, while legacy scenarios may still rely on Kerberos-based SSO or X.509 certificates for specific use cases. A second pillar is identity lifecycle management: provisioning, deprovisioning, and attribute synchronization. SAP Identity Provisioning Service (IPS) or a similar identity governance tool typically synchronizes user master data from an HR source of truth to target systems, including ECC, S/4HANA, and BTP subaccounts. This reduces manual account creation errors and shortens the time to revoke access when employees leave or change roles, which is a critical control for auditors. Architecturally, you must decide where the trust boundary sits. Options include: (1) each SAP system trusting the corporate IdP directly, which is simpler but creates N point-to-point trust relationships and complicates certificate rotation; (2) a hub-and-spoke model where IAS is the single trust broker for SAP systems, simplifying certificate management and giving a consistent policy enforcement point, at the cost of introducing IAS as a critical dependency; or (3) a hybrid model where cloud systems trust IAS and on-premise systems trust the corporate IdP directly, common during phased S/4HANA transitions. Multi-factor authentication (MFA) policy must be considered at the IdP or IAS layer, not duplicated in each SAP system, to avoid inconsistent enforcement. Session timeout and token lifetime settings should be harmonized across systems to prevent a security gap where a long-lived session on one system outlives the intended policy. A critical difference across deployment types: S/4HANA public cloud enforces IAS-based authentication as the standard model with limited flexibility to introduce alternative SSO mechanisms, while private cloud and on-premise editions retain more configuration latitude, including classic SAML SSO configured directly in the ABAP stack. Architects must not assume public cloud systems can be configured identically to on-premise systems for authentication; verify current capability with the specific cloud service description before committing a design. Operationally, certificate expiration is the most common cause of authentication outages in federated architectures. A security architecture must include a certificate lifecycle plan: renewal calendars, automated alerts before expiry, and a documented emergency access path (e.g., local SAP logon for emergency admin users) that does not depend on the federated IdP, to avoid a total lockout if the IdP or IAS is unavailable.

Code example

ABAP Code
# Illustrative trust configuration outline (conceptual, not a literal SAP command sequence)# 1. Corporate IdP (e.g., enterprise IdP) issues SAML assertions for employees# 2. IAS tenant configured as trust broker:#    - Add corporate IdP as a "Trusted Identity Provider" in IAS#    - Configure attribute mapping: email -> SAP user ID# 3. S/4HANA Cloud / BTP subaccount trusts IAS tenant as its SAML IdP# 4. On-premise S/4HANA (ABAP) configured for SAML 2.0:#    - Register IAS (or corporate IdP) as trusted issuer#    - Map SAML NameID to SU01 user ID via configured identity provider settings# 5. IPS job schedule:#    - Source: HR system (source of truth)#    - Targets: ECC, S/4HANA, BTP subaccount#    - Sync frequency: near real-time or scheduled batch, per governance policy# 6. Emergency access path:#    - Local break-glass admin account with strong password + hardware token#    - Excluded from federated SSO enforcement, tightly monitored and logged

Real project scenario

During a phased S/4HANA transition, a client kept ECC live for finance while rolling out S/4HANA private cloud for logistics and BTP-based extension apps. The architecture team implemented IAS as the trust broker for S/4HANA and BTP, while ECC continued using direct SAML federation to the corporate IdP as an interim step. Six months later, when ECC was decommissioned, the trust relationship was migrated to route through IAS as well, unifying the model without disrupting existing SSO for end users, because the corporate IdP configuration required no changes on the identity provider side.

Common mistakes

• Configuring separate password policies in each SAP system instead of centralizing at the IdP, leading to inconsistent enforcement • Assuming public cloud S/4HANA supports the same SSO configuration flexibility as on-premise systems without checking current service capabilities • Failing to plan certificate rotation, causing unplanned SSO outages when SAML certificates expire • Not maintaining a break-glass emergency access path independent of the federated identity provider • Overlooking attribute mapping mismatches between HR source data and SAP user IDs during identity provisioning setup • Treating identity provisioning sync frequency as a technical detail rather than a security control tied to deprovisioning SLAs

Best practices

• Centralize authentication policy (MFA, session timeout) at the corporate IdP or IAS rather than duplicating it per system • Use IAS as a trust broker to reduce point-to-point certificate management overhead in hybrid landscapes • Automate identity provisioning from a single HR source of truth with monitored sync jobs and deprovisioning SLAs • Maintain a documented, tightly controlled break-glass access path independent of federated SSO • Track certificate expiry dates with automated alerts well before expiration • Validate deployment-specific SSO capabilities against current SAP service documentation rather than assuming parity across editions

Interview angle

Interviewers assess whether you can explain trust models (direct federation vs. hub-and-spoke via IAS), articulate why centralizing MFA and session policy at the IdP layer matters, and describe how you would design an emergency access path that survives an IdP outage. They also probe whether you understand deployment-specific authentication constraints rather than assuming uniform behavior across ECC, on-premise S/4HANA, and public cloud.