{"id":100990,"plugin_id":"plugins_6aed3278a3848191925fc74753ecbe72","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-17T06:15:21.671Z","digest":"b89f0cc42ac6b0f2c9ad2934f0140a6d9944e55ebd50dfba65fd0e5b60a11f51","against":null,"payload":{"description":"IDMP user-access skill. Use it to inspect users, roles, permission groups, assignable roles, and granted roles while keeping current-user reads separate from admin paginated user lists.","included_files":[{"relative_path":"references/user-access-read-flows.md","size_in_bytes":2198}],"name":"idmp-user-access","skill_md_contents":"---\nname: idmp-user-access\ndescription: \"IDMP user-access skill. Use it to inspect users, roles, permission groups, assignable roles, and granted roles while keeping current-user reads separate from admin paginated user lists.\"\nmetadata:\n  author: \"TAOS Data\"\n  version: \"0.4.1\"\n  owner_team: \"AI\"\n  requires:\n    bins:\n      - idmp-cli\n  cliHelp: \"idmp-cli user --help\"\n---\n\n# user / role / permission\n\n**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**\n\n## What this skill covers\n\n- Read current-user context, paginated admin user views, roles, permission groups, and safe authorization previews.\n- Keep current-user inspection separate from directory-wide admin surfaces.\n\n## Recommended reference\n\n- [`references/user-access-read-flows.md`](references/user-access-read-flows.md)\n\n## Missing context to resolve first\n\n- Admin visibility.\n- Permission group seed.\n- Whether the request is about the current user, a directory user, a role, or a permission scope.\n- Whether the operator only needs a dry-run preview or a real mutation.\n- Which scope, group, or role ID is already known.\n\n## Constrained live behaviors\n\n- `user users list` returns the current-user object.\n- `permission users assignable` and `permission roles list-get` can return structured 403.\n- `role roles create` requires a non-empty `permissionGroupIds` list.\n- `user users list` is the current-user surface; `user page list` is the paginated directory view.\n- Role and permission reads can succeed even when grant previews are permission-bound.\n- Keep `--dry-run --ack-risk` on grant previews until the operator explicitly wants a real mutation.\n\n## Execution flow\n\n1. Start with `idmp-cli user users list` to separate current-user context from directory-wide admin views.\n2. Use `idmp-cli user page list --params` only when the task really needs admin directory scope.\n3. Pair role detail with `idmp-cli permission groups list` before any grant preview or temporary role create.\n4. Keep authorization work on `permission policy grant-post --dry-run --ack-risk --params` until the operator explicitly wants a real mutation.\n5. If a temporary role must be created, reread it and pair the create with a delete cleanup step in the same workflow.\n\n## Evidence of completion\n\n- A current-user answer is only complete when it comes from `user users list`, not from a guessed admin directory row.\n- A permission boundary is still valid evidence when the backend returns a structured 403 for assignable or granted-role reads.\n- A temporary-role workflow is only complete when both the reread and the delete cleanup succeed.\n\n## Key commands\n\n1. `idmp-cli user users list` for the current-user shape.\n2. `idmp-cli user page list --params` for the admin directory view.\n3. `idmp-cli user users get --params` to inspect a specific user.\n4. `idmp-cli role roles get --params` to inspect one role deeply.\n5. `idmp-cli permission groups list` to enumerate reusable permission bundles.\n6. `idmp-cli permission policy grant-post --dry-run --ack-risk --params` to preview authorization safely.\n7. `idmp-cli role roles create --ack-risk --data` when a temporary custom role is really needed.\n8. `idmp-cli role roles delete --ack-risk --params` to remove that temporary role after verification.\n\n## Exception paths\n\n- If paginated admin reads are forbidden, do not infer that the current-user surface is also broken.\n- Stop at dry-run when the operator has not explicitly requested a real grant.\n- Clean up any temporary custom role you create.\n\n## Validation scenarios\n\n### 1. Current-user shape\nUse `idmp-cli user users list` first. This should answer “who am I” questions without requiring admin directory access.\n\n### 2. Admin directory view\nUse `idmp-cli user page list --params` for scoped directory inspection. Treat permission failures here as directory-boundary evidence, not a total auth failure.\n\n### 3. Role and permission-group context\nPair `idmp-cli role roles get --params` with `idmp-cli permission groups list`. The answer should explain both role detail and reusable permission groups.\n\n### 4. Safe grant preview\nUse `idmp-cli permission policy grant-post --dry-run --ack-risk --params` before any real grant. A dry-run failure is still useful boundary evidence.\n\n### 5. Temporary custom-role lifecycle\nIf you must mutate, pair `idmp-cli role roles create --ack-risk --data` with `idmp-cli role roles delete --ack-risk --params`. Build a temporary custom role with one real permission group, reread it, then delete it.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}