Now accepting guest editorial from SAP, Oracle, Workday and ServiceNow practitioners.Pitch a guide
The Sign-Off Table

Lesson 4 of 5

Least privilege

10 min

Listen to this lesson

0:00 / 5:32

The building blocks say how access is granted. Least privilege says how much. NIST's glossary defines it as a principle that restricts users' access to what their assigned tasks require; one NIST source phrases it as each entity being granted the minimum system resources and authorizations it needs. In SAP terms: the right functions, the right activities, and the right organizational values, and nothing else.

Least privilege in SAP terms

Least privilege in SAP works on three dimensions at once. A role can be too broad in any of them, and each needs its own test.

DimensionQuestionContoso example of too much
FunctionWhich apps and transactions?Ana's role includes supplier maintenance, although she only posts invoices
ActivityDisplay, create, change, delete?A controller who reviews POs can also change them (ACTVT 02 instead of 03)
OrganizationWhich company codes, plants, purchasing organizations?A Detroit buyer can create POs for plant 1720 Chicago and company code 1810
Three dimensions where a role can grant too much.
The Sign-Off Table · thesignofftable.com/academy/sap-sec-101

Wildcards are the usual culprit. An asterisk in an organizational field grants every value, including company codes created in the future. When Contoso adds company code 1910 for Alternadores del Norte in Wave 2, every role with BUKRS = * silently gains access to Mexican data. Roles with explicit values do not.

A wildcard company code reaches every company code, including 1910 when Wave 2 creates it; explicit values stay where they were set.
The Sign-Off Table · thesignofftable.com/academy/sap-sec-101

Need-to-know and dual control

Least privilege has two close relatives. Need-to-know limits display access, not just change access: an AP clerk may need to see a supplier's address but not every employee's salary. Dual control, which SAP's course describes for administration itself, splits sensitive tasks so no single person controls them end to end. SAP's example is splitting user, authorization data and profile administration among several administrators. The same idea, applied to business processes, is segregation of duties: the buyer who creates a PO over $25,000 should not be the one who approves it, and the person who maintains supplier bank details should not be the one who posts payments.

Narrow, sensitivePayment release for company code 1710 only: acceptable when owned, reviewed and logged
Broad, sensitiveSAP_ALL, wildcard company codes on change activities, debug-and-replace: the red zone; avoid in production
Narrow, routineDisplay of own purchase orders: the bulk of good roles
Broad, routineDisplay of materials across plants: often fine, but check need-to-know
Where to focus least-privilege reviews.
The Sign-Off Table · thesignofftable.com/academy/sap-sec-101

Practices that keep access lean

  • Start from tasks. Build roles from what the job does, not by copying a colleague's user.
  • Use explicit organizational values. Avoid asterisks in company code, plant and purchasing organization fields.
  • Use validity dates. Time-limit project and temporary access, and run the comparison that enforces it.
  • Reuse before you add. SAP's advice when a trace shows a missing authorization: check whether an existing role fits before creating a new one.
  • Review regularly. SAP recommends monitoring critical authorizations and who holds them with a defined procedure and checklists.

Least privilege in a conversion

A system conversion carries ECC roles into S/4HANA. That is convenient, but it also carries over every shortcut taken in fifteen years of support: wildcard plants, copied users, roles nobody owns. Contoso uses the conversion as a checkpoint. Each role is assigned an owner, compared with what its users actually ran in production, and tested in CMQ with the new apps before it is accepted. Roles nobody claims are not converted.

Contoso uses the conversion as a checkpoint: no owner means no conversion, and every kept role is trimmed to real use and tested in CMQ.
The Sign-Off Table · thesignofftable.com/academy/sap-sec-101

Why testers care

Role defects cut both ways. Too little access shows up at go-live as users who cannot work; it is loud and gets fixed. Too much access shows up months later in an audit finding or a fraud case; it is quiet and expensive. Most test plans only cover the loud side. A role test that never includes a negative case has not tested least privilege at all.

What would you do?

Two weeks before go-live, UAT is blocked by authorization errors for Chicago buyers. A consultant proposes setting plant to <code>*</code> in the buyer role "just for now". What should Nadia do?

Key points
  • Least privilege grants only what assigned tasks require: function, activity and organizational values.
  • Wildcards in organizational fields grant future values too, such as company code 1910.
  • Need-to-know limits display; dual control and segregation of duties split sensitive tasks.
  • Prove least privilege with negative tests, not only positive ones.

Check your understanding · not graded

Lesson check

  1. 1. Which is the best SAP example of least privilege?

  2. 2. What risk does BUKRS = * create when company code 1910 is added?

  3. 3. What does a negative role test prove?

  4. 4. SAP's course describes dual control for administration as: