platform-role-hierarchy-apply
Skill by forcedotcom
Platform Role Hierarchy Apply bulk-realigns an existing Salesforce UserRole hierarchy from an external org chart. It is for Salesforce admins who need to apply many role and parent changes in one approved manifest.
Install platform-role-hierarchy-apply
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-role-hierarchy-apply ~/.claude/skills/platform-role-hierarchy-applyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install platform-role-hierarchy-apply 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-role-hierarchy-apply ~/.gemini/antigravity-cli/skills/platform-role-hierarchy-applyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install platform-role-hierarchy-apply in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Platform Role Hierarchy Apply restructures an existing Salesforce UserRole hierarchy from an external org chart. The admin supplies a PDF, xlsx or csv file, or a plain-text list of role and parent pairs. The skill asks scope and user-reassignment questions first, reads the current roles, matches names exactly, and diffs the artifact against the org.
It then builds one manifest of create, rename, reparent, empty-role delete, and user-assignment changes, shows a preview, and submits it only after the admin approves. It does not handle single role edits, territory, account or forecast hierarchies, or sharing rules. It is aimed at Salesforce admins who need to realign many roles at once.
Written from the project's SKILL.md and checked against it.
What it can do
- Clarify scopeAsks about scope, user reassignment, ambiguous identities and conflicts before querying the org.
- Parse the artifactNormalizes a PDF, xlsx, csv or plain-text list into role and parent pairs for review.
- Resolve identitiesMatches roles by DeveloperName, then case-insensitive Name, and asks the admin when matches are ambiguous.
- Diff against the current treeCompares the artifact with the current UserRole hierarchy to find creates, renames and reparents.
- Build and validate a manifestAssembles dependent mutations and blocks submission on cycles, missing parents or duplicate names.
- Preview and submitShows a restructure preview with warnings, then sends the approved manifest once to the restructure endpoint.
What you need
- A Salesforce org with API access for this client tier
- Admin approval for the restructure manifest
- An org chart as a text-selectable PDF, xlsx, csv, or plain text
Try asking
- Apply this org chart PDF to our role hierarchy
- Realign roles from this spreadsheet of role and parent pairs
- Reorganize the role hierarchy using the attached plain-text list
Good to know
- Image-only PDFs cannot be parsed and need a text version.
- Does not roll back. It reports what the response says was committed.
- Does not cover territory, account or forecast hierarchies, or sharing rules.
- Users are reassigned only when the admin explicitly confirms it.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/platform-role-hierarchy-apply/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to platform-role-hierarchy-apply
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-role-hierarchy-apply: common questions
Does it edit UserRole records one at a time?
No. The source says the approved manifest is sent once and per-record UserRole edits are not used. A 404 on submit halts the run instead of falling back to them.
What happens when role names do not match exactly?
Roles are matched by DeveloperName, then case-insensitive Name, with no fuzzy matching. When more than one role matches, the candidates are listed for the admin to choose from.
Can a restructure be rolled back?
No. The source says the skill does not roll back and only reports what the response says was committed.
How do I install platform-role-hierarchy-apply?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is platform-role-hierarchy-apply free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is platform-role-hierarchy-apply safe to use?
It scores 80 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-role-hierarchy-apply?
Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.
