Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 80
  • 1.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-apply

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install platform-role-hierarchy-apply in Claude Code

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

A

No 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 →

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.

platform-role-hierarchy-apply Install

Add to stack

Loading.