Skip to main content

vulkro-sf org effective-perms

Reports the permissions active users in the live org actually hold today, not just what profiles and permission sets grant.

vulkro-sf org effective-perms --target-org <alias>
vulkro-sf org effective-perms -o <alias> --format sarif > effective-perms.sarif

--format takes table (default), json or sarif.

FindingSeverityMeaning
SF-OBJ-PERM-001High, Medium or LowA profile or permission set grants Modify All or View All Records on an object.
SF-FIELD-PERM-001High or MediumEdit (High) or Read (Medium) on a field named like personal data: SSN, date of birth, bank account, card number, passport and similar.
SF-PERM-ASSIGN-001HighA permission set grants Modify All Data, View All Data, Author Apex or Manage Users and at least one active user holds it. Every holder is listed.

For SF-OBJ-PERM-001, Modify All is High on customer-data objects or with 10 or more holders (else Medium), and View All is Medium on the same terms (else Low). Any grant no active user holds is Low.

Standard profiles and managed permission sets are skipped. Field values are never read.

See also: org perms, org psg-composition.

Command reference​

Generated from vulkro-sf org effective-perms --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 cumulative effective permissions held by users right now.

vulkro-sf org effective-perms [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, json, or sarif. 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 effective-perms --help
Audit cumulative effective permissions held by users right now.

Runs four read-only SOQL queries against the live org and reports the per-user blast radius that the metadata-only `org perms` view does not show:

SF-OBJ-PERM-001 Modify All Records / View All Records grants, one finding per (Profile or PermissionSet, grant) listing the objects it covers. Closes the per-object equivalent of the org-wide ModifyAllData / ViewAllData rules. SF-FIELD-PERM-001 Read / Edit on PII-shaped fields (SSN, DOB, bank account, credit card, drivers license, passport, medical record, taxpayer id, ...), one finding per (Profile or PermissionSet, grant) listing the fields.

Both are weighted by the active users holding the grant today: a grant nobody active is assigned is Low ("granted but unassigned"); otherwise Modify All is High on customer-data objects or 10+ holders (else Medium), View All is Medium on the same terms (else Low), Edit on PII is High and Read on PII is Medium. The title names the count. SF-PERM-ASSIGN-001 PermissionSetAssignment ground truth: one finding per PermissionSet granting a broad system permission (ModifyAllData, ViewAllData, AuthorApex, ManageUsers) AND held by at least one active user, listing every active assignee.

Standard Salesforce profiles (System Administrator, Standard User, ...) and managed permission sets are skipped, matching the same filter the metadata-only `org perms` audit uses.

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

Usage: vulkro-sf org effective-perms [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, json, or sarif

[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')