{"audience":"Internal and external auditors, authorization administrators, information security teams and process owners who own roles.","authorization_objects":[{"note":"Displaying user master data by user group","object":"S_USER_GRP"},{"note":"Displaying roles","object":"S_USER_AGR"},{"note":"Displaying transactions in roles","object":"S_USER_TCD"}],"components":[],"countries":[],"effort_days_max":12,"effort_days_min":8,"effort_size":"M","faq":[{"a":"S_TCODE shows the ability to start the transaction. Object checks inside the transaction (company code, document type, activity) also apply. The report states this limit as a note on every output; for object-level audits it should be used together with the critical authorization and segregation of duties reports.","q":"Does the report prove that a user can really perform the activity?"},{"a":"Role assignment change documents remain in the system as long as they are not deleted or archived; the report reads them for the selected date range. If change documents have been archived, the history view goes back to the archiving date.","q":"How far back does the role assignment history go?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"excel","label":"Export to Excel","note":"Each view is exported in audit format with heading, selection criteria and run details."},{"code":"drilldown","label":"Double-click drill-down to the document","note":"From a line the user drills down to the role (PFCG display) and the user (SU01 display)."},{"code":"background","label":"Runs as a background job","note":""}],"functions":[{"name":"CHANGEDOCUMENT_READ","role":"Reads role assignment change documents"}],"gap":"The user information system (SUIM) answers these questions in separate reports: transaction to users, user to roles and change documents are separate screens and the results come in a technical format. The role-transaction-user matrix and the assignment history are not combined in one list; the file for the auditor is prepared by hand every time and cannot be compared between periods.","id":"basis-user-role-authorization-audit","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-18","logic":"1. Role-transaction mapping: the values of authorization object S_TCODE in single roles (AGR_1251) are read; ranges and wildcards are resolved against the transactions in TSTC. Transactions in the role menu (AGR_TCODES) are shown as well; a menu transaction that is not granted through S_TCODE is flagged.\n2. Composite roles are expanded to their single roles with AGR_AGRS; access a user gets through a composite role is shown with the composite and single role it comes from.\n3. User-role assignments are read from AGR_USERS with their validity dates. Assignments not valid on the report date, locked users (USR02-UFLAG) and users past their validity (USR02-GLTGB) are flagged separately; name and department come from USR21 → ADRP/ADCP.\n4. Assignment history: role assignment change documents (CDHDR/CDPOS, object class PFCG, table AGR_USERS) are read for the selected date range; each line shows the role added or removed, its validity, the user who made the change, date and time. USH04 is read as well for the profile assignment history.\n5. Views: (a) transaction → users, (b) user → roles → transactions, (c) role → users, (d) assignment history. Each view is exported to Excel in audit format with a heading, run date, selection criteria and the user who ran it.\n6. Note: S_TCODE shows the ability to start a transaction; object checks inside the transaction (e.g. company code, document type) also apply. The report states this as a note on every output; for detailed object checks it is used together with the critical authorization and segregation of duties reports.","module":"BASIS","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"User","source_field":"UNAME","source_table":"AGR_USERS"},{"calculated":false,"formula":"","label":"Full name","source_field":"NAME_TEXT","source_table":"ADRP"},{"calculated":false,"formula":"","label":"Role","source_field":"AGR_NAME","source_table":"AGR_USERS"},{"calculated":false,"formula":"","label":"Role description","source_field":"TEXT","source_table":"AGR_TEXTS"},{"calculated":true,"formula":"Name of the composite role if the single role was assigned through it (AGR_AGRS)","label":"Composite role","source_field":null,"source_table":null},{"calculated":true,"formula":"Transaction resolved from the S_TCODE value","label":"Transaction","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Transaction text","source_field":"TTEXT","source_table":"TSTCT"},{"calculated":false,"formula":"","label":"Valid from","source_field":"FROM_DAT","source_table":"AGR_USERS"},{"calculated":false,"formula":"","label":"Valid to","source_field":"TO_DAT","source_table":"AGR_USERS"},{"calculated":true,"formula":"Active, locked or expired (USR02-UFLAG, USR02-GLTGB)","label":"User status","source_field":null,"source_table":null},{"calculated":true,"formula":"Role added or removed (CDPOS change indicator)","label":"Change","source_field":null,"source_table":null},{"calculated":false,"formula":"","label":"Changed by","source_field":"USERNAME","source_table":"CDHDR"},{"calculated":false,"formula":"","label":"Change date","source_field":"UDATE","source_table":"CDHDR"}],"parameters":[{"example":"FB60","kind":"select_option","label":"Transaction code","name":"S_TCODE","ref_field":"TSTC-TCODE","required":false},{"example":"MDEMIR","kind":"select_option","label":"User","name":"S_UNAME","ref_field":"AGR_USERS-UNAME","required":false},{"example":"FI_*","kind":"select_option","label":"Role","name":"S_AGR","ref_field":"AGR_USERS-AGR_NAME","required":false},{"example":"01.01.2026 – 16.11.2026","kind":"select_option","label":"Change date (history view)","name":"S_UDATE","ref_field":"CDHDR-UDATE","required":false},{"example":"İşlem kodu","kind":"radio","label":"View: transaction / user / role / assignment history","name":"P_VIEW","ref_field":"","required":true},{"example":"","kind":"checkbox","label":"Also show locked and expired users","name":"P_LOCK","ref_field":"","required":false}],"part_of":[],"performance":"Restrict AGR_1251 to object S_TCODE and resolve ranges once per role. Read change documents by object class and date range; read CDPOS only for the selected headers. In large systems run view (b) in the background.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-user-role-authorization-audit","related":["basis-critical-authorizations-by-user","basis-role-assignment-expiry","basis-sod-conflicts-by-user","basis-transaction-usage-history-archive"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Offers separate reports for users, roles, transactions and change documents; does not combine them in one audit list.","tcode":"SUIM"},{"note":"Shows a role's menu, authorizations and users role by role; does not give a system-wide matrix.","tcode":"PFCG"}],"summary":"A custom ALV report that shows in one audit-ready list who can run a transaction and through which role, which transactions a user is authorized for through which roles, and who added or removed role assignments and when. Composite roles are expanded to single roles, ranges and wildcards in S_TCODE values are resolved, and locked or expired users are shown separately.","tables":[{"access":"read","join_on":"","role":"User-role assignment and validity dates","table":"AGR_USERS","variant":"both"},{"access":"read","join_on":"AGR_1251-AGR_NAME = AGR_USERS-AGR_NAME","role":"Role authorization values: transactions granted through S_TCODE","table":"AGR_1251","variant":"both"},{"access":"read","join_on":"AGR_TCODES-AGR_NAME = AGR_USERS-AGR_NAME","role":"Transactions in the role menu","table":"AGR_TCODES","variant":"both"},{"access":"read","join_on":"AGR_AGRS-AGR_NAME = AGR_USERS-AGR_NAME","role":"Single roles of a composite role","table":"AGR_AGRS","variant":"both"},{"access":"read","join_on":"AGR_TEXTS-AGR_NAME = AGR_USERS-AGR_NAME","role":"Role description","table":"AGR_TEXTS","variant":"both"},{"access":"read","join_on":"USR02-BNAME = AGR_USERS-UNAME","role":"User lock, validity and user type","table":"USR02","variant":"both"},{"access":"read","join_on":"USR21-BNAME = AGR_USERS-UNAME","role":"User's person number","table":"USR21","variant":"both"},{"access":"read","join_on":"ADRP-PERSNUMBER = USR21-PERSNUMBER","role":"User's full name","table":"ADRP","variant":"both"},{"access":"read","join_on":"","role":"Transaction codes (for resolving ranges and wildcards)","table":"TSTC","variant":"both"},{"access":"read","join_on":"TSTCT-TCODE = TSTC-TCODE","role":"Transaction code text","table":"TSTCT","variant":"both"},{"access":"read","join_on":"","role":"Role assignment change document header (object class PFCG)","table":"CDHDR","variant":"both"},{"access":"read","join_on":"CDPOS-CHANGENR = CDHDR-CHANGENR","role":"Role assignment change detail: role added or removed","table":"CDPOS","variant":"both"},{"access":"read","join_on":"USH04-BNAME = AGR_USERS-UNAME","role":"Profile assignment change history","table":"USH04","variant":"both"}],"title":"User, Role and Transaction Authorization Audit Report with Role Assignment History","url":"https://nekuhub.com/en/reports/user-role-transaction-authorization-audit-report/","vendor_id":"nekudos"}