SAP example roles
Which function modules and tables Nova calls in an SAP system is listed under SAP → Authorisations Nova needs in the SAP system. Derived from that, this page shows three single roles as a template for the SAP Basis team.
Role names, user groups and role namespaces are examples. Which objects and values an SAP system checks depends on release and settings; an authorisation trace (STAUTHTRACE) on the RFC user shows what is missing.
| Role | System | Purpose |
|---|---|---|
Z_NOVA_RFC | every SAP system Nova manages as a target system | check status, read and write accounts and roles, last logon, role catalogue, read SAP authorisation values |
Z_NOVA_RFC_GRC | the system with SAP GRC Access Control | take over rule sets from SAP GRC, read only |
Z_NOVA_RFC_HR_OM | the SAP system the “SAP OM” source system reads from | organisational structure, read only |
If Nova uses one system in several ways – SAP GRC in the same system as the roles it checks, for instance – the RFC user gets every matching role there.
The RFC user
- User type System: no dialog logon.
- A user group of its own, such as
NOVA_RFC, that does not appear in the values ofS_USER_GRPbelow. - The roles have no menu: Nova calls no transactions,
S_TCODEis not needed. - In role maintenance (
PFCG): maintain authorisations without a template, add the objects below manually, generate the profile.
Z_NOVA_RFC
S_RFC – RFC access
| Authorisation | RFC_TYPE | RFC_NAME | ACTVT |
|---|---|---|---|
| Read interfaces | FUGR | SYST, RFC1, SDIFRUNTIME, RFC_METADATA | 16 |
| Read | FUNC | RFC_PING, BAPI_USER_GETLIST, BAPI_USER_GET_DETAIL, RFC_READ_TABLE, EM_GET_NUMBER_OF_ENTRIES | 16 |
| Write | FUNC | BAPI_USER_CREATE1, BAPI_USER_CHANGE, BAPI_USER_LOCK, BAPI_USER_UNLOCK, BAPI_USER_DELETE, BAPI_USER_ACTGROUPS_ASSIGN, BAPI_TRANSACTION_COMMIT | 16 |
Through the function groups of the first row the SAP NetWeaver RFC SDK reads the interfaces of the function modules; which of them a release checks, the trace shows.
S_USER_GRP – user groups
| Field | Value |
|---|---|
CLASS | (blank) and the groups of the accounts Nova manages, such as Z_STAFF |
ACTVT | 01 create, 02 change, 03 display, 05 lock, 06 delete, 22 assign |
Nova sets no user group when it creates an account; new accounts are therefore in the blank group unless the SAP system requires one.
S_USER_AGR – roles
| Field | Value |
|---|---|
ACT_GROUP | the roles Nova is to read and assign, such as Z* |
ACTVT | 03 display, 22 assign |
SAP accepts role assignments only as a complete list – see Writing and reading back. If an account has a role outside these values, SAP refuses to remove it, and Nova reports the change as failed. The values thus limit what Nova can assign and remove.
S_USER_PRO – profiles
| Field | Value |
|---|---|
PROFILE | T-* – the prefix of generated profiles, unless the system is set to another |
ACTVT | 22 assign |
When a role is assigned, SAP assigns its generated profiles to the account. Nova never assigns profiles itself.
S_TABU_NAM – reading tables
| Purpose | TABLE |
|---|---|
| Role catalogue | AGR_DEFINE, AGR_FLAGS, AGR_AGRS, AGR_TEXTS |
| Last logon | USR02 |
| Authorisation values: values and organisational levels | AGR_1251, AGR_1252, USORG |
| Authorisation values: generated profiles | AGR_1016, AGR_TIME, AGR_TIMEB, USR10, UST10C, UST10S, UST12 |
| Authorisation values: role menus and Fiori | AGR_HIER, AGR_BUFFI, AGR_HIERT, /UI2/PB_C_PAGE, /UI2/PB_C_PAGEM, /UI2/PB_C_TM, /UI2/PB_C_TMM, USOBHASH, /IWFND/I_MED_SRH |
ACTVT 03 display.
RFC_READ_TABLE checks S_TABU_DIS (authorisation groups) first and only then S_TABU_NAM (table names). The role therefore contains no S_TABU_DIS; the access applies to exactly the tables listed.
From USR02 Nova reads only the user name and the date and time of the last logon. Without USR02 Nova has neither the last logon of the SAP accounts nor the hints on unused accounts.
Nova only reads
If Nova does not provision into the system, the “Write” row of S_RFC and the object S_USER_PRO are not needed; S_USER_GRP and S_USER_AGR need only ACTVT 03.
Z_NOVA_RFC_GRC
S_RFC
| Authorisation | RFC_TYPE | RFC_NAME | ACTVT |
|---|---|---|---|
| Read interfaces | FUGR | SYST, RFC1, SDIFRUNTIME, RFC_METADATA | 16 |
| Read | FUNC | RFC_PING, RFC_READ_TABLE, EM_GET_NUMBER_OF_ENTRIES | 16 |
S_TABU_NAM
| Purpose | TABLE |
|---|---|
| Rule sets, risks, functions | GRACRULESET, GRACRULESETT, GRACSODRISK, GRACSODRISKT, GRACSODRISKRS, GRACSODRISKFUNC, GRACFUNC, GRACFUNCT, GRACFUNCACT, GRACFUNCPRM, GRACFUNCPRMEXTN |
| Business processes, connector groups | GRACBPROC, GRACBPROCT, GRFNCONNGRP, GRFNCONNGRPT, GRFNCGRPCONLK |
| Risk levels, rules, settings | IGRCACTRULERL, IGRCARRULERL, GRACACTRULHDR, GRACCONFIG, GRACCONFIGSET |
| Checks and hints | TOBJ, TSTC, /UI2/PB_C_PAGE, /UI2/PB_C_PAGEM, /UI2/PB_C_TM, /UI2/PB_C_TMM |
ACTVT 03 display.
Further GRC tables – those of mitigations and owners, for instance – Nova only counts, to point out content it does not take over; it never reads them.
Z_NOVA_RFC_HR_OM
| Object | Field | Value |
|---|---|---|
S_RFC | RFC_TYPE · RFC_NAME · ACTVT | FUGR · SYST, RFC1, SDIFRUNTIME, RFC_METADATA · 16 |
S_RFC | RFC_TYPE · RFC_NAME · ACTVT | FUNC · RFC_PING, RFC_READ_TABLE · 16 |
S_TABU_NAM | TABLE · ACTVT | HRP1000, HRP1001 · 03 |
RFC_READ_TABLE checks no structural authorisations of SAP HCM: the RFC user reads the whole plan version.