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

Lesson 2 of 6

The role-to-process matrix

11 min

Listen to this lesson

0:00 / 9:12

Role tests are only as good as the list of what each role should and should not do. That list is the role-to-process matrix: business roles down one side, process steps and apps across the top, and a clear mark in each cell for "allowed", "allowed with restriction" or "not allowed". Security uses it to build roles; testers use it to derive tests.

Process step / appSales clerk (1710)AP clerk (1710)Buyer (Chicago)Warehouse clerk (Chicago)
Create sales order (VA01 / Manage Sales Orders)Allowed, sales org 1710Not allowedNot allowedNot allowed
Create purchase order (ME21N / Manage Purchase Orders)Not allowedNot allowedAllowed, plant 1720, purchasing group 001Not allowed
Post goods receipt (MIGO)Not allowedNot allowedNot allowedAllowed, plant 1720
Post supplier invoice (MIRO / Create Supplier Invoice)Not allowedAllowed, company code 1710Not allowedNot allowed
Change supplier bank details (business partner)Not allowedNot allowedNot allowedNot allowed
Approve purchase order over $25,000 (My Inbox, flexible workflow)Not allowedNot allowedNot allowed for own POs; the approver is the purchasing managerNot allowed

Part of Contoso's role-to-process matrix. Each cell becomes at least one test.

  1. Is the cell marked "allowed"?Yes → positive test, completed through save · No → next question
  2. Is it "allowed with restriction", such as plant 1720 only?Yes → positive test inside the restriction plus a negative test outside it, such as plant 1710 · No → next question
  3. Is it "not allowed"?Yes → negative test if the denial is high priority: wrong org unit, wrong activity, sensitive data, direct start, SoD · Otherwise → cover by spot check
Turning each cell of the role-to-process matrix into the right kind of test.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207

Know how the roles are built before you derive tests. Most programs use master and derived roles: the master role holds the apps, transactions and authorization values for a job, and each derived role inherits all of it and adds only its own organizational values, so "buyer, plant 1710" and "buyer, plant 1720" are two derived roles of one master. Composite roles bundle single roles for a job. Many start from SAP's business role templates, such as SAP_BR_INTERNAL_SALES_REP, copied into the customer namespace, because the SAP_BR_* templates are examples, not production roles. For testing, prove the master role's functions once through one derived role, then give every derived role its own org-level positive and negative test, because that is the only place derived roles differ.

Users get authorizations only through roles; derived roles share a master role's functions and differ only in org values, which is where their tests should focus.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207

Deriving positive tests

Every "allowed" cell becomes a positive test: log on as a test user with exactly that role and complete the step end to end, including saving and any follow-on display the user needs. Do not stop at "the app opened". Many authorization checks only run when you save, change a status or navigate to a related document. A buyer role that can open Manage Purchase Orders but fails on save has not passed.

Positive tests should also cover the restriction. If the buyer is allowed for plant 1720 only, the positive test uses plant 1720. The matching negative test uses plant 1710.

Remember the steps around the main transaction. A sales clerk who creates an order usually also needs to display the customer, check stock availability, view the price and print or send the order confirmation. If the matrix lists only "create sales order", the clerk may be able to save an order but not see why it was blocked. Walk through the job with the key user and add the supporting displays to the matrix; they are a common source of day-one tickets.

  1. Display the customerGreat Lakes Fleet Services in sales area 1710 / 10 / 00.
  2. Check availabilityStock of CMC-ALT-100 in plant 1710.
  3. View the priceConditions and the fleet agreement.
  4. Create and save the orderThe step usually listed in the matrix.
  5. Send the confirmationOutput to the customer and a follow-on display of the order.
A sales clerk's real job around one transaction; every supporting step needs a row in the matrix and a positive test.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207

Deriving negative tests

Negative tests prove that access that should be denied is denied. You cannot test every "not allowed" cell for every role, so prioritize. Test the denials that matter most:

  • Wrong organizational unit: the Chicago buyer tries to create a PO for plant 1710.
  • Wrong activity: a display-only finance user tries to change a journal entry or a cost center.
  • Sensitive data: an AP clerk tries to change supplier bank details.
  • Read restrictions: the Chicago buyer searches purchase orders and should see none for plant 1710. In many Fiori list apps the denial shows as missing rows, not an error, so the expected result is "not listed".
  • Self-approval: the buyer's own purchase order over $25,000 must go to the approver's My Inbox, not hers. Flexible workflow decides the approver, so test the workflow rule as well as the role.
  • Out-of-role apps: a sales clerk tries to open a purchasing app directly by URL or transaction code, not just by looking for the tile.
  • Segregation of duties: a user tries to do both halves of a conflicting pair (covered in a later lesson).
Spot checkLow impact, low likelihood: display-only access to master data
Test every releaseHigh impact, low likelihood: payment run, bank details, posting period control
Test in the cycleLow impact, high likelihood: new apps, recently changed roles
Test first and in regressionHigh impact, high likelihood: new org units such as Wave 2's plant 1910, SoD pairs, changed approval roles
Prioritizing role tests by impact and likelihood.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207

What would you do?

Security has built a new buyer role for Contoso's Chicago plant 1720. Priya has time for three tests. Which set gives the best coverage?

Key points
  • The role-to-process matrix lists, per role, which steps are allowed, restricted or not allowed.
  • Each allowed cell is a positive test, completed through save, not just app start.
  • Prioritize negative tests: wrong org unit, wrong activity, sensitive data, direct start of out-of-role functions, SoD.
  • Hiding a tile is not a denial; test the transaction or URL directly.

Check your understanding · not graded

Lesson check

  1. 1. Which is a NEGATIVE role test?

  2. 2. Why must a positive test go as far as saving the document?

  3. 3. The Chicago buyer role is restricted to plant 1720. Which negative test follows directly from that?

  4. 4. Why is a hidden tile not proof that access is denied?

  5. 5. Buyer roles for plants 1710 and 1720 are derived from one master role. Where do the two derived roles differ?