{"audience":"BASIS and authorization administrators, information security teams, internal audit and IT management working with external auditors.","authorization_objects":[{"note":"Display user data by user group (ACTVT 03)","object":"S_USER_GRP"},{"note":"Display roles and role authorizations","object":"S_USER_AGR"},{"note":"Display profiles","object":"S_USER_PRO"}],"components":[],"countries":[],"effort_days_max":7,"effort_days_min":5,"effort_size":"M","faq":[{"a":"During installation, a starter list of common critical authorizations is prepared with the information security and audit team. The list is kept in a settings table; adding a rule needs no program change.","q":"Who defines the critical rule list?"},{"a":"No. The report reads only metadata such as roles, profiles, user type, validity and last logon. Fields holding password hashes or security keys are never selected.","q":"Does the report read user password data?"},{"a":"Emergency users can be excluded from the selection by user group or name pattern, or listed alone with a separate variant. Approved exceptions are then tracked apart from the main findings.","q":"How are emergency (firefighter) users separated?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the user opens SU01, double-clicking the role opens PFCG."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"The monthly list can be emailed to the information security team."}],"functions":[],"gap":"\"Users by complex selection criteria\" in SUIM (RSUSR002) searches one authorization object and value combination at a time; it does not evaluate dozens of critical rules in one run, and it does not show in the same row which role grants the access and when the assignment ends. SAP_ALL profile assignments and role-based authorizations are searched separately. The segregation of duties (SoD) report checks pairs of authorizations; this report scans authorizations that are critical on their own against a rule list.","id":"basis-critical-authorizations-by-user","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. The rule list is read from the settings table: rule code, risk level, authorization object, field and value (e.g. S_TCODE-TCD = SU01, PFCG, SE38, SM59, SCC4; S_DEVELOP OBJTYPE = DEBUG and ACTVT = 02; S_TABU_DIS ACTVT = 02; S_USER_GRP ACTVT = 01/02; S_BTCH_ADM BTCADMIN = Y).\n2. Authorization values that are not deleted (DELETED blank) are read from AGR_1251 and matched against the rules; '*' wildcards and LOW–HIGH ranges count as a match when they cover the rule value.\n3. Matching roles are expanded to users through AGR_USERS assignments valid on the key date; single roles of composite roles are stored separately in AGR_USERS and are found directly. The role description is added from AGR_TEXTS.\n4. Users with SAP_ALL, SAP_NEW or other critical profiles from the rule list assigned directly are read from UST04.\n5. User type, group, lock status (UFLAG), validity and last logon are added from USR02, the full name from USR21/ADRP. Locked users are excluded depending on the selection.\n6. The result is listed by user and rule in ALV; double-clicking the user opens SU01, double-clicking the role opens PFCG.","module":"BASIS","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"User","source_field":"BNAME","source_table":"USR02"},{"calculated":false,"formula":"","label":"Full name","source_field":"NAME_TEXT","source_table":"ADRP"},{"calculated":false,"formula":"","label":"User type","source_field":"USTYP","source_table":"USR02"},{"calculated":false,"formula":"","label":"User group","source_field":"CLASS","source_table":"USR02"},{"calculated":false,"formula":"","label":"Last logon","source_field":"TRDAT","source_table":"USR02"},{"calculated":true,"formula":"Description of the matching rule in the settings table","label":"Critical rule","source_field":null,"source_table":null},{"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":false,"formula":"","label":"Profile","source_field":"PROFILE","source_table":"UST04"},{"calculated":false,"formula":"","label":"Authorization object","source_field":"OBJECT","source_table":"AGR_1251"},{"calculated":false,"formula":"","label":"Field","source_field":"FIELD","source_table":"AGR_1251"},{"calculated":false,"formula":"","label":"Value","source_field":"LOW","source_table":"AGR_1251"},{"calculated":false,"formula":"","label":"Assignment valid to","source_field":"TO_DAT","source_table":"AGR_USERS"},{"calculated":true,"formula":"Risk level of the rule; SAP_ALL and debug change are always Critical","label":"Risk level","source_field":null,"source_table":null}],"parameters":[{"example":"* hariç FIREFIGHTER*","kind":"select_option","label":"User","name":"S_UNAME","ref_field":"USR02-BNAME","required":false},{"example":"A, B, S","kind":"select_option","label":"User type","name":"S_USTYP","ref_field":"USR02-USTYP","required":false},{"example":"","kind":"select_option","label":"User group","name":"S_CLASS","ref_field":"USR02-CLASS","required":false},{"example":"ROL_*","kind":"select_option","label":"Role","name":"S_AGR","ref_field":"AGR_USERS-AGR_NAME","required":false},{"example":"S_DEVELOP, S_TABU_DIS","kind":"select_option","label":"Authorization object (narrows the rule list)","name":"S_OBJCT","ref_field":"AGR_1251-OBJECT","required":false},{"example":"17.11.2026","kind":"parameter","label":"Key date","name":"P_KEYDT","ref_field":"","required":true},{"example":"X","kind":"checkbox","label":"Check directly assigned critical profiles","name":"P_PROF","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Also show locked users","name":"P_LOCK","ref_field":"","required":false}],"part_of":["basis-audit-compliance-pack"],"performance":"Narrow AGR_1251 by the authorization objects in the rule list first and compare the values in ABAP. Read user and name data once with FOR ALL ENTRIES. On systems with thousands of roles the report can take a few minutes; run it in the background for the monthly audit list.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-critical-authorizations-by-user","related":["basis-role-assignment-expiry","basis-sod-conflicts-by-user"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Finds users with one combination of authorization values; there is no multi-rule run with role source and assignment end in one list.","tcode":"SUIM"},{"note":"Shows the authorizations and users of a role one role at a time; it does not scan critical access across users.","tcode":"PFCG"}],"summary":"A custom ALV report that lists users holding authorizations that are critical on their own, such as the SAP_ALL and SAP_NEW profiles, debugging with value change, table maintenance, user and role maintenance or changing RFC destinations, showing which role or profile grants the access, the value and the validity end of the assignment. The rule list is kept in a settings table that can be maintained per customer; before an audit, one list shows who has what.","tables":[{"access":"read","join_on":"","role":"User type, group, lock status, validity and last logon (driving table)","table":"USR02","variant":"both"},{"access":"read","join_on":"AGR_USERS-UNAME = USR02-BNAME","role":"User-to-role assignment and validity dates","table":"AGR_USERS","variant":"both"},{"access":"read","join_on":"AGR_1251-AGR_NAME = AGR_USERS-AGR_NAME","role":"Authorization object, field and values in the role","table":"AGR_1251","variant":"both"},{"access":"read","join_on":"UST04-BNAME = USR02-BNAME","role":"Directly assigned profiles (SAP_ALL, SAP_NEW)","table":"UST04","variant":"both"},{"access":"read","join_on":"AGR_TEXTS-AGR_NAME = AGR_USERS-AGR_NAME AND AGR_TEXTS-SPRAS = SY-LANGU AND AGR_TEXTS-LINE = 0","role":"Role description","table":"AGR_TEXTS","variant":"both"},{"access":"read","join_on":"USR21-BNAME = USR02-BNAME","role":"Person number of the user","table":"USR21","variant":"both"},{"access":"read","join_on":"ADRP-PERSNUMBER = USR21-PERSNUMBER","role":"Full name of the user","table":"ADRP","variant":"both"}],"title":"Users with Critical Authorizations Report (SAP_ALL, Debug, Table Maintenance)","url":"https://nekuhub.com/en/reports/users-with-critical-authorizations-report-sap-all-debug/","vendor_id":"nekudos"}