platform-sharing-owd-configure
Skill by forcedotcom
Retrieves and updates Organization-Wide Default sharing settings for Salesforce standard and custom objects. It is for Salesforce admins and developers who manage baseline record access through the Salesforce CLI.
Install platform-sharing-owd-configure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.claude/skills && cp -r /tmp/sf-skills/skills/platform-sharing-owd-configure ~/.claude/skills/platform-sharing-owd-configureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install platform-sharing-owd-configure in Claude Code
git clone --depth 1 https://github.com/forcedotcom/sf-skills /tmp/sf-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sf-skills/skills/platform-sharing-owd-configure ~/.gemini/antigravity-cli/skills/platform-sharing-owd-configureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install platform-sharing-owd-configure in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill retrieves and updates Organization-Wide Default (OWD) sharing settings for standard and custom objects in a Salesforce org. OWDs define the baseline access users have to records they do not own. It queries current settings with the Salesforce CLI Tooling API. To make changes, it retrieves the object's .object-meta.xml file through the Metadata API, edits the sharing model fields, and deploys the file back to the org.
Before deploying, the skill checks that the requested access level is valid for the object, that the object is not fixed, and that external access is not more permissive than internal access. It allows at most two deploy attempts per change and verifies the result with a new query. Sharing rules, role hierarchy, manual sharing and permission sets are out of scope and are delegated to other skills. It is intended for Salesforce administrators and developers who manage org-wide sharing.
Written from the project's SKILL.md and checked against it.
What it can do
- Get OWD settingsQueries the internal and external sharing model for one object or all customizable objects.
- Update access levelsChanges internal and/or external access for standard and custom objects through a metadata deploy.
- Validate access levelsChecks the requested value against the allowed values for the target object before deploying.
- Check fixed OWD objectsStops before deploying when the requested change targets a platform-fixed OWD value.
- Pre-deploy verificationConfirms external access is not above internal access and Master-Detail objects use ControlledByParent.
- Verify changesRe-runs the original query after an update to confirm the new settings.
What you need
- Salesforce CLI (sf) version 2.0.0 or later
- A connected Salesforce org
- Manage Sharing permission or System Administrator profile
Try asking
- Show me the current org-wide default sharing settings for Account and Contact.
- Set the internal access on Invoice__c to Private.
- Check whether External Access is enabled for my custom Project__c object.
Good to know
- Objects with Master-Detail relationships must use ControlledByParent.
- Some objects have immutable OWD values, such as Price Book external access, and cannot be changed.
- Changing OWD to a more restrictive setting triggers sharing recalculation, which can take a long time on large orgs.
- Two deploy attempts maximum per change.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/platform-sharing-owd-configure/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
examples/get_owd_output.md1 KB -
examples/update_owd_output.md1 KB -
references/access_levels.md4 KB -
references/metadata_api_approach.md2 KB
Alternatives to platform-sharing-owd-configure
All alternatives →Scores inbound HubSpot leads on engagement, company fit and urgency, then ranks the ones worth a call today. Built for sales owners who need to decide who to call first.
Builds a ranked list of prospects by deriving an ideal customer profile from existing customers. It finds look-alike companies and decision-makers, then scores them. Built for owners who need new customers.
Writes prospect outreach and follow-up sequences in the owner's own voice, learned from their sent mail. Queues every send for approval and logs each touch to the CRM. Runs draft-only when no mail connector is available.
Writes and runs B2B cold outbound, including cold emails, follow-up sequences, LinkedIn messages and multichannel cadences. Built for sales development and outbound teams that want replies rather than template blasts.
Speed to Lead checks inbound inquiries from web forms, the shared inbox, and the CRM, then drafts replies for the owner to approve. It is for owners who lose leads because nobody replies fast enough.
Helps write, build and improve B2B cold email and follow-up sequences for prospects who did not opt in. Covers SDR and founder outreach.
Compare with lead-triage, lead-finder or outreach-composer
platform-sharing-owd-configure: common questions
Can this skill create sharing rules?
No. Sharing rules, criteria-based sharing, role hierarchy and manual sharing are out of scope. The skill delegates those tasks to platform-sharing-rules-generate.
How does the skill change OWD settings?
It retrieves the object's .object-meta.xml with the Metadata API, updates the sharingModel and externalSharingModel fields, and deploys the file.
What happens if a deploy fails?
An invalid or unsupported value stops the process and is reported to the user. A transient error is retried once, and after two failed attempts the local edits are discarded and the user is asked how to proceed.
How do I install platform-sharing-owd-configure?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is platform-sharing-owd-configure free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is platform-sharing-owd-configure safe to use?
It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to platform-sharing-owd-configure?
Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.
