Sub topic 12
Finding missing authorizations with SU53 and the trace
This chapter assumes you know what authorization objects, fields and activities are, how a business role combines catalogs with authorization values, and how roles are assigned to business users. It teaches a repeatable way to find out which authorization check failed and what to change in the role.
The working model
A user reports "no authorization" or sees an app tile that opens an error. Two different things can be missing, and they need different fixes:
- Launchpad access. The business catalog is not in a role assigned to the user, so the app or tile never appears.
- Data authorization. The app opens, but an authority check inside it fails because the role has no matching authorization object values.
Decide which case applies first. If the tile is absent, check the role's catalogs and the user assignment. If the tile is present but the app fails, use SU53 and the trace.
Reading SU53
Transaction SU53 shows the last failed authorization check of the user who runs it. This has two consequences:
- The affected user must run SU53 right after the error, in the same system, before doing anything else. Any further failed check overwrites the result.
- An administrator who runs SU53 sees their own last failure, not the user's. The administrator needs the user to send a screenshot, or must use the option to display another user's data if they hold the authorization to do so.
The screen lists the authorization object, the field values the program asked for, and the values the user has. For the example check from the code chapter, you might see:
| Field | Required value | User holds |
|---|---|---|
| BUKRS | 1010 | 2000 |
| ACTVT | 03 | 03 |
Here the activity is fine, but the user holds company code 2000 and the program needed 1010. The fix is an organizational value change in the role, not a new object.
Using the system trace
When SU53 shows nothing useful, or an app makes many checks and you cannot tell which one failed, record them with the authorization trace.
- Open transaction STAUTHTRACE (or ST01 and select the Authorization Check trace component).
- Start the trace for the affected user. On a shared system, filter by user name to keep the trace small.
- Ask the user to repeat the action once.
- Stop the trace and open the result.
- Look for entries with a non-zero return code. A return code of 0 means the check passed, and 4 means the user lacks a matching authorization.
The trace also lists passed checks. That helps you see which objects an app uses, which you can compare with the SU24 defaults of the app.
Applying the fix
After you know the failing object and values, change the role rather than the user.
- Open the role in PFCG and go to the Authorizations tab.
- Find the object. If it is missing, check SU24 for the app. If SU24 has no proposal, the app may need a maintained default, which is a custom change.
- Add or correct the field values, for example the company code.
- Generate the profile.
- Ask the user to log off and on, then repeat the action.
Exercise
A user opens an app from the launchpad and gets "No authorization". You run SU53 and see your own last failed check, which is unrelated. What went wrong, and what should you do next?
Show answer
SU53 shows the last failed check of the user who runs it, so you saw your own failure. Ask the affected user to run SU53 immediately after reproducing the error, or start an authorization trace for that user with STAUTHTRACE or ST01, have them repeat the action, and look for entries with return code 4.
Exercise
The SU53 result shows BUKRS required 1010, user holds 2000, and ACTVT matches. Where should you make the correction, and why not simply enter * for BUKRS?
Show answer
Change the BUKRS value in the role's authorization data in PFCG (or the organizational restriction for the business role), then regenerate the profile. Entering * would give every user with the role access to all company codes, which is more than the user needs.