
Description
Platform Sharing Rules Generate is an agent skill from Salesforce's sf-skills repository for working with Salesforce sharing rules metadata. It lets the agent get, create, edit and delete sharing rules that control record-level access beyond the org-wide defaults. It supports criteria-based rules, owner-based rules for roles and groups, and guest user rules for Experience Sites. The agent can retrieve existing rules from an org through the Metadata API, append new rules to existing files, change criteria or access levels and remove rules. Before acting, it asks clarifying questions such as which object and which target org to use. Changing org-wide defaults, creating Experience Sites, permission sets and territory-based rules are out of scope. It suits Salesforce admins and developers.…
Highlights
- Get, create, edit and delete Salesforce sharing rules
- Criteria-based, owner-based and guest user rules
- Retrieves existing rules via the Metadata API
- Asks which object and org to use before acting
Ratings & Reviews
No ratings yet
Be the first to rate platform-sharing-rules-generate.
People also visit

platform-dataspace-access-configure
Configure or inspect Salesforce Data Cloud DataSpace access for permission sets

generating-permission-set
Generates correct, deployable Salesforce permission set metadata

platform-policy-rule-generate
Authoring PolicyRuleDefinition and PolicyRuleDefinitionSet metadata XML

platform-permission-set-generate
Generates correct, deployable Salesforce permission set metadata
platform-sharing-rules-generate FAQ
What kinds of sharing rules are supported?
Criteria-based rules, role or group owner-based rules, and guest user rules for Experience Sites.
What is out of scope?
Changing org-wide defaults, creating Experience Sites, configuring permission sets or profiles, and territory-based sharing rules.
Can it read rules from an existing org?
Yes, it retrieves existing sharing rules using the Metadata API Retrieve pattern, after confirming the object and target org.
How do I install it?
Run npx skills add https://github.com/forcedotcom/sf-skills --skill platform-sharing-rules-generate.
What did the security audits show?
Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best platform-sharing-rules-generate alternatives?
Popular alternatives to platform-sharing-rules-generate include platform-sharing-owd-configure, platform-dataspace-access-configure and generating-permission-set. See all platform-sharing-rules-generate alternatives

