/sap-project:sap-auth-requirements <OBJECT> | derive <OBJECT> [--type program|fm|class] [--source-files a,b] | su24-audit [--tcodes Z*|list]from sap-project
Derives SAP authorization requirements from custom ABAP code via RFC, producing a confirmed/inferred auth matrix and SU24 audit for Z-transactions.
Ships in sap-project. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You produce a security-team-ready authorization matrix from real code (derive) and audit which
Z-transactions lack SU24 proposals (su24-audit) — all read-only. Every value is CONFIRMED
(literal) or INFERRED (variable/dynamic), and a value you cannot resolve statically is INFERRED
with its stop point, never a confident guess.
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_auth_requirements_rfc.ps1 | -Mode derive|su24-audit | Source read + validation + su24-audit backend |
<SKILL_DIR>/references/sap_auth_extract.ps1 | -SourceFiles -OutJson | Offline ABAP auth-surface extractor + value tracer (unit-testable) |
<SKILL_DIR>/references/auth_extract_fixture.abap.txt | offline corpus | Extractor test fixture (explicit/implicit/DUMMY/dynamic/trace cases) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_read_source.ps1 | dot-source | Read-SapAbapSource (RPY program/FM read) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_finding_lib.ps1 · sap_artifact_lib.ps1 | dot-source | Findings + evidence registration |
/sap-se24 · /sap-review-abap · /sap-explain-object | sub-skills | Class source download / security-review positioning / object dossier |
Resolve work_dir + {RUN_TEMP} (canonical one-liner — sap_connection_lib.ps1 is dot-sourced
there — with Write-Output ('RUN_TEMP=' + (Get-SapRunTemp)) appended). {RUN_TEMP} = the
per-run scratch dir holding the log state file; mint it once here and reuse (re-minting breaks
the -Action end state-file lookup). Start logging (sap_log_helper.ps1,
state {RUN_TEMP}\sap_auth_requirements_run.json). Pinned RFC profile via /sap-login.
Default / derive <OBJECT> | su24-audit. v2 modes (su24-maintain, su21-create,
su24-diff) are NOT implemented yet — reject with a clear "planned for v2" message.
... sap_auth_requirements_rfc.ps1 -Mode derive -Object <n> -Type program|fm -OutDir "{RUN_TEMP}\ar"
For a class/interface, RFC source read is unsupported: run /sap-se24 check-and-download
(security-sidecar pre-armed) to fetch the source, then pass -SourceFiles "<file>"; with
--no-gui the class degrades to COULD_NOT_CHECK (never a guessed empty matrix). The backend
resolves+reads source (RPY), runs the offline extractor, and validates each row against TOBJ
(object + its FIEL1..FIEL0 fields) and TACTZ (allowed ACTVT). Emits AUTHVAL: per row +
AUTHREQ: summary; writes auth_requirements.tsv (seq/source/statement/object/field/value/
status/validation/trace_note) + su24_proposal_draft.tsv. Map validation != OBJECT_OK and
INFERRED rows to New-SapFinding (categories AUTHREQ_INVALID_OBJECT/_FIELD/_VALUE,
AUTHREQ_TRACE_STOPPED, AUTHREQ_UNPROTECTED_SUBMIT); a no-AUTHORITY-CHECK program that writes
tables is worth an AUTHREQ_MISSING_CHECK observation. COULD_NOT_CHECK caps the verdict.
... sap_auth_requirements_rfc.ps1 -Mode su24-audit -Tcodes "Z*" (or "ZA,ZB") -OutDir "{RUN_TEMP}\ar"
SU24: per tcode (objects/checked/value_rows/newest_moddate/verdict) + su24_audit.tsv.
Verdicts: NO_PROPOSAL (no USOBX_C data — role builders must guess; the headline gap),
CHECK_DISABLED (all OKFLAG=N), ONLY_S_TCODE, PROPOSAL_PRESENT. Findings per NO_PROPOSAL /
stale tcode.
Summarize (n CONFIRMED / n INFERRED / validation issues, or the NO_PROPOSAL count), verdict
line, file paths. Register-SapArtifact (Kind auth-requirements / su24-audit, coverage
tri-state, verdict) for /sap-evidence-pack.
Log end (SUCCESS/FAILED/SKIPPED + error_class). Error classes: AUTHREQ_SOURCE_UNREADABLE,
AUTHREQ_EXTRACT_FAILED, AUTHREQ_INPUT; reused RFC_LOGON_FAILED / RFC_ERROR. (AUTHREQ_*
finding categories are NOT error classes — they keep /sap-review-abap from double-reporting.)
su24-audit: 12 Z tcodes all
NO_PROPOSAL, while standard SE38/VA01/ME21N correctly show PROPOSAL_PRESENT (47/200/200
objects, value rows, MODDATE) — the query logic is sound and the Z-tcode gap is real. derive:
the offline extractor passes an 11-case fixture (explicit literal/variable-traced/DUMMY,
CALL TRANSACTION/SUBMIT/DATASET/RFC-DESTINATION, static + dynamic DDIC writes) and end-to-end on
ZCMRUPDATE_ADDON_TABLE surfaced its dynamic MODIFY (mv_table) as an INFERRED S_TABU_DIS row
validated OBJECT_OK against TOBJ/TACTZ. EC2 (ECC 6) was probed in-plan (full USOB*/TOBJ parity)
but was unreachable at build time; the code path is release-agnostic (RFC_READ_TABLE + RPY,
identical catalog) — TDDAT is POOL on ECC, read the same way.--source-files) or
COULD_NOT_CHECK. FM-include source read over RPY was verified on S4D; on other releases a
read failure degrades to COULD_NOT_CHECK, never an empty matrix.su24-maintain (apply a reviewed proposal via probe-recorded SU24 GUI, TR via
/sap-transport-request, USOBT_C/USOBX_C re-read verify) and su21-create — both confirm-gated;
no update/delete of auth objects in any phase. su24-diff (derive vs USOBT_C) is v1.5.AUTHREQ_* findings; /sap-review-abap keeps line-
cited security judgments — the two never double-report the same requirement.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap-authorization, abap-security, su24, authority-check, rfc-extraction
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-project40 skills in this plugin
/sap-auth-diagnoseDiagnoses "no authorization" failures deterministically over RFC and proposes the
exact PFCG fix — no more pasting an SU53 screenshot and hand-searching SUIM. Given
the failed authorization object (+ optional field values, read off SU53 / an ST22
dump / an application-log message), it evaluates the target user against the
AUTHORITATIVE runtime user buffer (`SUSR_USER_AUTH_FOR_OBJ_GET`, remote-enabled on
S/4HANA 1909 + ECC 6) with faithful AUTHORITY-CHECK semantics — one authorization
instance must satisfy every field, '*' matches anything, VON..BIS ranges honoured —
so the verdict can never disagree with the real kernel check the way a hand-rolled
AGR_1251/UST12 join can. It then classifies each failure (`MISSING_OBJECT` /
`MISSING_VALUE` / `BUFFER_STALE`) plus user-level `USER_LOCKED` / `USER_EXPIRED` /
`ROLE_EXPIRED`, names the closest role the user already has (with what it currently
grants), and writes a diagnosis TSV + fix-proposal + ready-to-send security request.
Read-only toward roles and users — the fix is always a proposal, never a write.
Prerequisites: SAP profile via /sap-login (RFC); SAP NCo 3.1 (32-bit). su53 (GUI
auto-scrape of the failed objects) and trace (STAUTHTRACE) modes are the documented
next phase — until then the operator supplies the failed object (Claude decodes a
pasted SU53 into the check input).
/sap-bpManages SAP Business Partners via the BP transaction using SAP GUI Scripting.
Creates new partners (Organization type) or updates existing ones.
Existence check, partner creation with role/grouping selection, and
partner update with field values from a definition file.
Prerequisites: Active SAP GUI session (use /sap-login first).
Other plugins' skills for the same job