Skip to main content

vulkro-sf org psg-composition

Checks the live org's permission set groups for powerful grants that appear only when their permission sets are combined.

vulkro-sf org psg-composition --target-org <alias>
vulkro-sf org psg-composition -o <alias> --format json
FindingSeverityMeaning
SF-PSG-COMPOSITION-001High (Medium for Author Apex)Two or more permission sets in one group each grant the same Modify All Data, View All Data or Author Apex permission.

Each permission set can look fine alone; the risk is in the group. An admin group may do this on purpose, so review each finding.

See also: org perms, org effective-perms.

Command reference​

Generated from vulkro-sf org psg-composition --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Audit PermissionSetGroup composition for effective god-mode grants (SF-PSG-COMPOSITION-001).

vulkro-sf org psg-composition [OPTIONS] --target-org <TARGET_ORG>

Options​

FlagDescription
-t, --target-org <TARGET_ORG>Target org alias or username, as known to sf org login
-f, --format <FORMAT>Output format: table or json. Default: table.
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro-sf org psg-composition --help
Audit PermissionSetGroup composition for effective god-mode grants (SF-PSG-COMPOSITION-001).

Cross-walks each `PermissionSetGroup` against its `PermissionSetGroupComponent` rows and the contained `PermissionSet` perm flags. Fires when two or more component permsets in the same PSG each grant the same god-mode user permission (`ModifyAllData`, `ViewAllData`, or `AuthorApex`), meaning the PSG aggregation is the structural escalation channel the metadata-only SF-PERM-001 rule does not reason about. This catches the composition-only escalation that the existing SF-PERM-001 misses.

Exit codes: 0 = no findings; 1 = findings reported; 2 = error.

Usage: vulkro-sf org psg-composition [OPTIONS] --target-org <TARGET_ORG>

Options:
-t, --target-org <TARGET_ORG>
Target org alias or username, as known to `sf org login`

-f, --format <FORMAT>
Output format: table or json

[default: table]

-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')