Skip to content
SecureBasisby Sharan AIDownloadBook a demo

SAP authorisations

A read-only role your security team can approve line by line

SecureBasis reads the ABAP stack through one technical user with one role. The role grants display on named tables and execution of three read-only function modules, and nothing else. The RFC channel also refuses every write in code.

Source grades. A = SAP-authored; B = a reputable third party. Check grade-B entries on your own release before go-live. Build the role in a sandbox first and confirm every check runs with exactly this role and fails with NOT_AUTHORIZED without it.

The user

  • Proposed role name Z_BP_RFC_READONLY, assigned to a dedicated user such as BP_READER.
  • User type B (System). For SOAP-RFC with basic authentication, check on your release whether a System user can log on through ICF; if it cannot, use type S (Service).
  • No dialog logon. Transport the role with STMS once it is proven in the sandbox.

S_RFC: the function modules it calls

RFC_TYPERFC_NAMEACTVTUsed byStatus
FUNCRFC_READ_TABLE16Every table checkVerified (B), function group SDTX
FUNCRFC_SYSTEM_INFO16System informationModule verified (A); function group not yet confirmed
FUNCENQUEUE_READ16Locks before the stopLab confirmation pending (remote-enabled status disputed)
FUGRSYST16Logon of an external RFC client (NW RFC SDK backend only)Verified (A)
FUGRRFC_METADATA16Function metadata lookup (NW RFC SDK backend only)Verified (A) for SAP NCo; confirm with STAUTHTRACE

Prefer FUNC with the single module: a whole function group would also allow every other remote-enabled module in it. If your release does not accept FUNC, fall back to FUGR SDTX for RFC_READ_TABLE.

Some security baselines block RFC_READ_TABLE. If yours does, only the system-information and lock checks remain; every other RFC check needs it, and those missions stay unverified rather than passing.

S_TABU_NAM: display (ACTVT 03), one entry per table

TableCheckStatus
CVERSSoftware components and levelsVerified (B)
CWBNTCUST, CWBNTHEAD, CWBPRSTATTSAP Note implementation statusVerified (B)
USR02Users created since the Patch DayVerified (B); hash columns are never selected
USH02User changes since the Patch DayVerified (B)
RFCDES, RFCATTRIBRFC destinationsVerified (B)
TBTCOJobs running before the stopVerified (A/B)
VBHDROpen update requests before the stopVerified (B)
REGUVFinance: payment runsTable verified; "in progress" meaning in lab
TRFCQOUT, TRFCQINLogistics: qRFC queuesVerified (A/B)
ARFCSSTATELogistics: tRFC errorsVerified (B)
EDIDCLogistics: IDocsVerified (B)
EDPP1, EDP13, EDP21, EDIPORT, EDIPOALogistics: partner profilesVerified (B)
T569VHCM: payroll control recordVerified (B)
RSPCLOGCHAINBW: process chain runsTable verified; gate meaning in lab
/IWFND/I_MED_SRHFiori: active OData servicesField meaning in lab (B)

Never grant S_TABU_NAM with TABLE = *, and never grant USRPWDHISTORY, RSECTAB or RSECACTB: SecureBasis never reads them. Table access to USR02 also covers its password-hash columns; the channel never selects them and refuses them in code. If USR02 access is not acceptable to you, drop the "users created" check and keep the user-changes check (USH02) alone.

The field of S_TABU_NAM is named TABLE or TABNAME depending on the source; confirm it in SU21 on your release.

S_TABU_DIS: not granted

RFC_READ_TABLE checks S_TABU_DIS (by authorisation group) first, then S_TABU_NAM (by table). So the minimum is S_TABU_NAM per table and no S_TABU_DIS at all: granting it for an authorisation group would open every table in that group. Sources: SAP KBA 3675823 (A, title) and the Tricentis LiveCompare documentation (B).

SOAP-RFC: the ICF service

ItemSetting
ICF service /sap/bc/soap/rfcActive in SICF in the clients you check. Not needed for the NW RFC SDK backend.
SAP's guidanceNote 1394100 recommends deactivating this service on releases above 6.10. Activating it is your decision; activate it for the Patch Day window only.
Who can call itSet "SAP Authorization" on the service's Service Data tab in SICF (for example ZBP_SOAP) and grant S_ICF with ICF_FIELD = SERVICE, ICF_VALUE = ZBP_SOAP to this role only.
LogonBasic authentication over HTTPS, or an X.509 client certificate mapped to the user. The channel refuses plain HTTP.

Never granted

  • No S_TABU_DIS, and no change activity (02) anywhere.
  • No S_RFC beyond the modules above.
  • No S_DEVELOP, S_ADMI_FCD or user-administration objects.
  • No dialog logon.

SAPControl and web access

  • SAPControl (sapstartsrv): HTTP basic authentication as the SAP admin login on the server (system ID + adm, for example s4dadm), or a client certificate over HTTPS. The SAP Host Agent's instance list uses sapadm. Reads are the default; start, stop and the kernel switch run only after a second person's approval inside the window.
  • ICM web checks: /sap/public/ping, /sap/public/info and the SAML2 metadata need no logon. The launchpad check and the OData catalog read use basic authentication over HTTPS with a user that may call those services.
  • SAP GUI (optional, Windows): SecureBasis attaches to a session you already opened and logged into, and runs only display transactions from its allowlist. Transactions that write are blocked.