Authorization, Basis and cross-layer traces — Guided debugger and evidence walkthrough
Full lesson currently free to read · AI practice limits apply separately
Training simulation: All sample identifiers, logs, requests, transactions, values and cases are fictional. Tools and permissions vary by SAP release; perform any changes only in approved DEV/QA environments. Authorization, Basis and cross-layer traces — Guided debugger and evidence walkthrough Outcome: Confirm whether role values, technical identities or runtime services cause the failure.
Visual overview
Explanation
Training simulation: All sample identifiers, logs, requests, transactions, values and cases are fictional. Tools and permissions vary by SAP release; perform any changes only in approved DEV/QA environments.
Authorization, Basis and cross-layer traces — Guided debugger and evidence walkthrough
Outcome: Confirm whether role values, technical identities or runtime services cause the failure.
Prerequisites: SAP GUI/S/4HANA authorization infrastructure, PFCG, SU53, STAUTHTRACE and Basis diagnostics; cloud access varies. Work only in approved test systems.
Sample evidence
TEST_USER clicks Approve InvoiceFiori tile opens, OData action returns 403CSRF check: passedSTAUTHTRACE: object M_RECH_WRK, ACTVT=02, BUKRS=DE10 denied (fictional values)Role TEST_AP_CLERK: ACTVT=03 onlySix-stage walkthrough
- Record affected end user, application and exact failed action; determine whether UI, OData, DCL or ABAP check rejects it.
- Exclude CSRF/session and service-activation failure from the HTTP evidence before tracing business authorization.
- Capture SU53 immediately after the controlled failure; if incomplete, run user/time-restricted STAUTHTRACE with Security approval.
- Compare denied object and field values to actual PFCG role design and the business owner's required activity.
- Request the smallest permitted role adjustment; never bypass AUTHORITY-CHECK or relax DCL globally.
- Retest approved activity and an intentionally unapproved activity; record access-owner approval and audit evidence.
Evidence observations
- The role grants display activity but not approve/change activity, explaining the controlled denial.
- The UI tile loads and CSRF passed, making a client-side routing error unlikely.
- Authorization trace identifies the exact object/field values; it is stronger evidence than guesswork.
Alternative hypotheses
- Role misses the documented approve activity for this company code.
- CSRF token failure rejects POST even though PFCG grants business permission.
- The backend service runs as a technical user with a different authorization assignment.
Regression checks
- Positive: Authorized approver can perform the exact action on the permitted company-code record.
- Negative: Display-only clerk still cannot approve even after the change.
- Cross-process: Restricted company code remains inaccessible and a cross-system technical user isn't overprivileged.
Check your diagnosis
Question: SU53 shows no decisive object but the action fails for one user. What is the appropriate next step?
A. Run an approved scoped STAUTHTRACE for the exact action and user.
B. Grant every authorization object.
C. Ignore backend authorization because the tile opens.
Correct: A. A trace helps establish which object/values were actually denied.
Safety: Do not recommend SAP_ALL, emergency IDs without governance, or broad customer access. Security trace data must remain confidential.
Real project scenario
Synthetic case: The same transaction works for one user but not another.
The example TEST_AP_CLERK role intentionally has display-only activity; the attempted approval needs a narrower authorized change permission for the specified company-code context.
Common mistakes
- A blank SU53 after a failure isn't evidence that authorization succeeded.
- A Fiori tile assignment and backend business permission are separate gates.
- Granting SAP_ALL can conceal a faulty requirement and violate Segregation of Duties.
Best practices
The role owner validates job duty/SoD and adds the minimum approved authorization in a test role. Keep business DCL/service checks and promote through governed role transport.
- Positive: Authorized approver can perform the exact action on the permitted company-code record.
- Negative: Display-only clerk still cannot approve even after the change.
- Cross-process: Restricted company code remains inaccessible and a cross-system technical user isn't overprivileged.
Do not recommend SAP_ALL, emergency IDs without governance, or broad customer access. Security trace data must remain confidential.
Interview angle
Authorization and Basis debugging: SU53 limitations, authorization traces (STAUTHTRACE/ST01), role and profile comparison, system logs (SM21), work process analysis (SM50/SM66) and lock entries (SM12) — always with least privilege in mind.
Practice this lesson
Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.
Quick check
0 of 4 questions attempted
1. SU53 shows no decisive object but the action fails for one user. What is the appropriate next step?
2. SU53 doesn't show the failing check. What is a better tool?
3. A user can't change a document because 'it is locked'. Where can you see lock entries?
4. Which is the correct fix after finding a missing authorization?
Interview questions
1. How do you troubleshoot an authorization issue for a single user?
Answer it in your own words first, then compare.
2. The system is slow for everyone. Which Basis tools do you use first?
Answer it in your own words first, then compare.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.