vulkro-sf org sharing-rules
Checks sharing on the live org's Accounts, Opportunities, Contacts and Leads for access wider than it should be.
vulkro-sf org sharing-rules --target-org <alias>
vulkro-sf org sharing-rules -o <alias> --format json
| Finding | Severity | Meaning |
|---|---|---|
SF-SHARING-001 | High | A share grants broad write access. |
SF-SHARING-002 | Medium | A record is manually shared with a portal user. |
SF-SHARING-003 | Low | A criteria-based share covers many records. |
It reads share rows, public groups and record counts, never record values. Custom objects are not covered.
See also: role-hierarchy, org guest-live.
Command reference
Generated from vulkro-sf org sharing-rules --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 standard-object sharing entries for over-broad write access, portal-user manual shares, and criteria-based shares covering many records (SF-SHARING-001 / -002 / -003).
vulkro-sf org sharing-rules [OPTIONS] --target-org <TARGET_ORG>
Options
| Flag | Description |
|---|---|
-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') |
Full vulkro-sf org sharing-rules --help
Audit standard-object sharing entries for over-broad write access, portal-user manual shares, and criteria-based shares covering many records (SF-SHARING-001 / -002 / -003).
Queries `AccountShare`, `OpportunityShare`, `ContactShare`, `LeadShare` (RowCause != 'Owner') plus the org's public-group directory (`Group`), and per-object record counts. Pure audit on the joined data, no writes.
Exit codes: 0 = no findings; 1 = posture findings reported; 2 = error.
Usage: vulkro-sf org sharing-rules [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')