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

Lesson 3 of 6

Test users and assignments

19 min

Listen to this lesson

0:00 / 16:16

A role test is only meaningful if the test user holds what a real production user will hold: the same roles, in the same combination, with the same organizational values. Most role defects found late are combination defects, where each role is fine on its own but a user gets two roles whose authorizations add up to something unexpected, or a composite role is missing one of its parts.

Build users from the production assignment plan

Start from the planned user-to-role assignment for go-live, not from the role catalog. If Maria, the order-to-cash key user, will hold a composite role made of sales order processing, delivery display and customer master display for sales area 1710 / 10 / 00, create a test user with exactly that composite role. If some Chicago warehouse staff will also hold a cycle-counting role, create a second warehouse test user with both roles.

AspectTest each role in isolationTest production combinations
Test user setupOne user per single role from the role catalogOne user per distinct combination in the go-live assignment plan
Missing part of a composite roleNot foundFound: the user holds exactly the composite Maria will hold
Authorizations that add up across rolesNot foundFound: the warehouse lead's two roles are tested together
Org valuesOften genericThe real ones: plant 1720, storage location 172A, sales org 1710
Why test users are built from the assignment plan: most late role defects are combination defects.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207
Test userMirrorsRoles assignedOrg values
T_OTC_CLERK_01Sales clerk, DetroitComposite: sales order processing, delivery displaySales org 1710, plant 1710
T_BUYER_CHI_01Buyer, ChicagoPurchasing operational rolePurchasing org 1710, plant 1720, purchasing group 001
T_WH_CHI_01Warehouse clerk, ChicagoGoods movementsPlant 1720, storage location 172A
T_WH_CHI_02Warehouse lead, ChicagoGoods movements plus physical inventoryPlant 1720
T_AP_CLERK_01Accounts payable clerkSupplier invoice processingCompany code 1710

Contoso test users for role testing in CMQ client 100. Names follow a convention so they are easy to find and never mistaken for real users.

Creating and maintaining test users

In the ABAP stack, users are maintained in SU01, or in bulk with SU10, and roles can be assigned from the user or from the role in PFCG. After roles change, the users' profiles must be brought up to date (the user master comparison), or the user keeps the old authorizations. Run it from the role in PFCG or for all roles with PFUD; most systems also schedule report PFCG_TIME_DEPENDENCY daily, which removes profiles whose role assignment has expired. Roles that arrive in CMQ by transport need the comparison in CMQ too. Check this before every role test run: a test that fails because the comparison was not run is a wasted defect.

  • Use dialog users for role tests, since they behave like real interactive users.
  • Never add a broad role to a role-test user "just to get past" a step. If the step fails, that is the finding.
  • Keep test user definitions under change control: when the production assignment plan changes, update the test users the same day.
  • After a QAS refresh, test users are overwritten. Export and restore them, or recreate them from a script, as part of the refresh runbook.
  • Keep passwords for shared test users in your organization's approved vault, never in test scripts or test case text.

Watch validity dates as well. Role assignments in SAP have a start and end date, and test users created for a previous cycle may have assignments that have quietly expired. A user whose role assignment ended last Friday will fail every test on Monday with messages that look like role defects. Include a quick SUIM check of assignment validity in the readiness list for every role test run.

Don't forget technical users. Background job steps run under a step user, interfaces log on with communication or system users, and each of Contoso's roughly 60 Process Orchestration interfaces has its own logon. A conversion changes their checks too, and they fail at night in a job log or an IDoc status instead of on a tester's screen. Give each one a role test with its planned production user: run the job or send a test message, then check the result.

User typeDialog logon?Use in role testing
Dialog (A)YesRole tests and UAT: one named test user per role combination
System (B)NoBackground job steps and internal RFC: test with the planned job user
Communication (C)NoInterfaces calling in from other systems: test with the interface user
Service (S)Yes, sharedAnonymous or shared access; avoid for role tests
Reference (L)NoAdds its authorizations to other users; never add one to a role-test user

SAP user types and how each one belongs in role testing.

  1. Has the user master comparison run since the last role change?Yes → next check · No → run it, or failures will be stale-profile noise
  2. Does SUIM show the user's roles match the assignment plan?Yes → next check · No → correct the user before testing
  3. Are all role assignments valid for today's date?Yes → next check · No → extend them; expired assignments look like role defects
  4. Has QAS been refreshed since the users were set up?No → ready to test · Yes → restore or recreate the test users from the runbook first
A pre-run readiness check that stops test-user problems being logged as role defects.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207
  1. Assignment planSecurity and process owners agree which users get which roles
  2. Create test usersOne per distinct role combination, with production org values
  3. CompareRun the user master comparison so profiles are current
  4. VerifyUse SUIM to confirm each user's roles match the plan
  5. TestRun positive and negative tests and record results by user
Preparing role-test users.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207
A role-test user's lifecycle: every role change, expiry or refresh sends it back for comparison and verification before its results count.
The Sign-Off Table · thesignofftable.com/academy/sap-tst-207

What would you do?

During UAT, the Chicago warehouse lead's test user fails to post a goods receipt. A colleague suggests adding the broad CMQ tester role to the user so UAT can continue. What should Priya do?

Key points
  • Test users must mirror production role combinations and org values, not individual roles in isolation.
  • Maintain users in SU01/SU10, assign roles via user or PFCG, and run the user master comparison after role changes.
  • Never widen a role-test user's access to get past a failure; the failure is the finding.
  • Restore or recreate test users after every refresh, and use SUIM to verify assignments.

Check your understanding · not graded

Lesson check

  1. 1. Why should test users mirror production role combinations rather than single roles?

  2. 2. Which transaction maintains many users at once?

  3. 3. A role was changed yesterday but the test user still behaves as before. What is a likely cause?

  4. 4. Which tool answers "which roles contain this authorization object value?"

  5. 5. Which report, usually scheduled daily, removes profiles from users whose role assignments have expired?