Skip to content
Development
Skill

/sap-suim

Answers SUIM questions as repeatable, diffable commands — read-only over RFC (no GUI, no RSUSR* report submits). `users` finds who has access: by role (composite-aware), by transaction (S_TCODE grant primary, menu secondary), or by authorization object/field/value — joined to

From plugin
sap-dev
10123 skills3 agents

Claude Code

$ npx -y skills add sapdev-ai/sap-dev --skill sap-suim --agent claude-code

SKILL.md

sap-suim.SKILL.md
name: sap-suim
description: |
  Answers SUIM questions as repeatable, diffable commands — read-only over RFC (no
  GUI, no RSUSR* report submits). `users` finds who has access: by role
  (composite-aware), by transaction (S_TCODE grant primary, menu secondary), or by
  authorization object/field/value — joined to USR02 lock/validity + USER_ADDR
  names, with a PROFILE_COVERAGE header disclosing that only role-based grants are
  analyzed (manual profiles + reference users counted, SAP_ALL holders named).
  `critical` scans the system for dangerous authorizations against a co-owned,
  customer-extensible critical_auths.tsv (table-maintenance change, debug-replace,
  SE38/SM49/SU01/PFCG, wildcard grants) and always flags SAP_ALL holders, with a
  GO/GO_WITH_WARNINGS/NO_GO verdict. Turns SUIM screenshots into artifacts an audit
  can diff. Prerequisites: SAP profile via /sap-login (RFC); SAP NCo 3.1 (32-bit).
  No GUI session, no Z-object dependency.
argument-hint: "users --role=<R|R*> | --tcode=<T> | --auth=<OBJ>:<FIELD>=<VALUE>  [--valid-on YYYYMMDD] [--include-locked] [--max N]   |   critical [--matrix <tsv>] [--users]"

SAP User & Authorization Info (SUIM, over RFC)

You answer "who has access to X", and "who holds critical authorizations", as one-line commands producing diffable TSV/MD artifacts — never SUIM screenshots. Every report is honest about its coverage (role-based grants; manual profiles and reference users are disclosed, not silently included or excluded).

Task: $ARGUMENTS

**You are read-only against SAP.** No confirm gates, no report submits, no GUI.

---

Shared Resources

| File | Token / call | Purpose | |---|---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | *(rule)* | Mandatory operating rules — read-only here | | `<SKILL_DIR>/references/sap_suim_query.ps1` | `[-Role\|-Tcode\|-Auth] [-ValidOn -IncludeLocked -Max]` | who-has-access engine (RFC) | | `<SKILL_DIR>/references/sap_suim_critical.ps1` | `-CriticalTsv <tsv> [-Users -Max]` | targeted critical-access scan (RFC) | | `<SKILL_DIR>/../../shared/tables/critical_auths.tsv` | matrix | Co-owned critical-grant seed (with /sap-explain-role); customer override at `{custom_url}\critical_auths.tsv` | | `<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_lib.ps1` / `sap_object_resolver.ps1` / `sap_artifact_lib.ps1` | dot-sourced / registration | RFC connect, `Read-SapTableRows`, artifact index |

---

Step 0 — Resolve Work Directory

powershell -NoProfile -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_settings_lib.ps1'; . '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir)); Write-Output ('CUSTOM_URL=' + (Get-SapSettingValue 'custom_url' ((Get-SapWorkDir) + '\custom')))"

Set `{RUN_TEMP}` via `Get-SapRunTemp`; `{OUT}` via `Get-SapArtifactDir` (scope `SID_<SID>_<CLIENT>` or `ROLE_<R>`).

Step 0.5 — Start Logging

powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_suim_run.json" -Skill sap-suim -ParamsJson "{}"

---

Step 1 — Parse Arguments

| Mode | Args | Access | |---|---|---| | `users` | exactly one of `--role=<R\|R*>` / `--tcode=<T>` / `--auth=<OBJ>:<FIELD>=<VALUE>`; `[--valid-on YYYYMMDD]` `[--include-locked]` `[--max N]` | read-only | | `critical` | `[--matrix <tsv>]` `[--users]` `[--max N]` | read-only |

`role-diff` / `user-diff` (offline grant-set diff) are **v1.5 (not yet)**; `sod` (offline tcode-pair conflict analysis) is **v2**. If asked, say so and continue.

Step 2 — Ensure the RFC Profile

RFC only — no GUI session. Profile pinned via `/sap-login`; the engines self-connect. RFC unavailable → fail loud (`RFC_LOGON_FAILED`), pointer to manual SUIM; never a partial "nobody has access".

Step 3 — Resolve the Critical Matrix (critical mode)

`--matrix` → `{custom_url}\critical_auths.tsv` → the plugin seed. Schema-invalid / missing → `AUTH_MATRIX_INVALID` (`NO_MATRIX` from the engine); echo matrix provenance + row count into the report header.

---

Step 4 — `users` (read-only)

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_suim_query.ps1" -Tcode "SE16N" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"

Use `-Role <R>` / `-Auth "<OBJ>:<FIELD>=<VALUE>"` for the other selectors; add `-ValidOn`, `-IncludeLocked`, `-Max`. Parse:

USER: bname=.. name=.. locked=<Y|N> valid=<from..to> via=<..> source=<direct|composite>
PROFILE_COVERAGE: users=<n> with_manual_profiles=<n> sap_all=<n> ref_users=<n>
STATUS: OK users=<n> capped=<Y|N> | AUTH_ROLE_NOT_FOUND | AUTH_TCODE_NOT_FOUND | RFC_ERROR

Render the user table, then **always show the PROFILE_COVERAGE disclosure verbatim**: "Role-based grants only. N of M users also hold manual profiles (SAP_ALL: k), and R inherit via reference users — NOT analyzed here." `AUTH_ROLE_NOT_FOUND` → show the `NEAR:` candidates. `capped=Y` → "at least Max — narrow or raise `--max`". A menu-only role (`--tcode` shows the tcode in a role's menu but no S_TCODE grant) is itself worth noting.

Step 5 — `critical` (read-only)

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_suim_critical.ps1" -CriticalTsv "<matrix>" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"

Add `-Users` to map each flagged check to the holder count (slower — per-role AGR_USERS reads). Parse `CRIT:` + `SAPALL:` lines + `STATUS: OK checks_hit=.. critical=.. high=.. sapall=.. verdict=<GO|GO_WITH_WARNINGS|NO_GO>`. Render the critical checks (severity-sorted) + the SAP_ALL holder list; state the verdict (any CRITICAL grant or any SAP_ALL holder → NO_GO). Note the scope loudly: "role-based coverage — a manual-profile-only holder of a critical grant is not seen here (COULD_NOT_CHECK), never rendered as clean."

---

Step 6 — Register & Log End

Write the

Read more
@sapdev-ai
Ships withsap-dev

SAP development automation skills for AI coding assistants. Windows-only — the skills drive SAP GUI for Windows via GUI Scripting (plus optional RFC via SAP NCo); there is no macOS/Linux path.

10123 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10
Star history of sapdev-ai/sap-dev on GitHub, a chart by star-history.com

Other skills on sap-dev.

sap-activate-object

sap-activate-object

Activates an inactive SAP repository object via SAP GUI Scripting. Routes to the correct transaction by object type: SE38 for…

@sapdev-ai@sapdev-aiInstall Skill
sap-api-advisor

sap-api-advisor

Natural-language SAP API discovery over RFC (no GUI): turn a goal like "create a sales order" or "post a goods movement" into a…

@sapdev-ai@sapdev-aiInstall Skill
sap-atc

sap-atc

Runs the SAP ABAP Test Cockpit (ATC) end-to-end as a quality gate: builds an SCI Object Set scoped to the target object(s),…

@sapdev-ai@sapdev-aiInstall Skill
sap-call-bdc

sap-call-bdc

Executes BDC (Batch Data Communication) sessions in SAP via RFC. Reads SHDB recording files from the bdc/ folder, connects via…

@sapdev-ai@sapdev-aiInstall Skill
sap-change-package

sap-change-package

Changes the package (TADIR-DEVCLASS) assignment of an SAP repository object via the "Object Directory Entry" dialog (Goto >…

@sapdev-ai@sapdev-aiInstall Skill
sap-check-abap

sap-check-abap

Validates ABAP source (report / program / FM / class / include) before deployment — one skill, dimension-dispatched: naming…

@sapdev-ai@sapdev-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about sap-suim.

Which coding agents can use sap-suim?
sap-suim installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.