
Dx Org Permission Set Assign
Wraps the sf org assign permset command for granting permission sets to Salesforce users. You'd reach for this whenever someone asks to assign, grant, or give permission sets to org users or admins. Handles the full range: single or multiple permission sets, default admin or specific users via the on-behalf-of flag, different target orgs. The skill is strict about using Bash instead of MCP tools and always returns JSON output for reliable parsing. Watch out for the CLI username alias requirement, which trips people up because it's not the same as the Salesforce User.Alias field. Idempotent by design, so reassigning won't break anything.
- skills.sh installs
- 5.8K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill dx-org-permission-set-assign --agent claude-codeInstalls into .claude/skills of the current project.
Files
dx-org-permission-set-assign
Assigns one or more permission sets to org users using sf org assign permset. Handles all variants: default admin user, specific org targets, multiple permission sets, and assignment to specific users.
Tool Restrictions
Use ONLY the Bash tool to execute sf org assign permset. Do NOT use MCP tools like assign_permission_set — ignore them completely.
Scope
- In scope: Assigning permission sets to users via
sf org assign permset - Out of scope: Creating permission sets (use
platform-permission-set-generate), listing permission sets, checking user permissions
Required Inputs
Infer from the user's request:
- Permission set name(s): Extract from user message (can be multiple)
- Target org: Use default unless specific alias/username mentioned
- Target user(s): Default is org's default admin user; use
--on-behalf-ofif specific users mentioned
Workflow
- Match user request to command in table below
- Execute via Bash tool:
sf org assign permsetwith appropriate flags and--jsonflag - Return result
If error occurs, check the failures array in JSON output for details.
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Platform Custom Lightning Type Generate5.8K
- Agentforce Test5.8K
- Agentforce Observe5.8K
- Platform Lightning App Coordinate5.7K
- Design Systems Slds2 Migrate5.7K
- External Diagram Mermaid Generate5.6K
- Integration Connectivity Connected App Configure5.5K
- Integration Connectivity Generate5.5K
- Agentforce D360 Analyze5.4K
- Experience Ui Bundle Frontend Generate5.3K
- Platform Tracing Configure5.3K
- Experience Ui Bundle Metadata Generate5.3K
- Experience Ui Bundle App Coordinate5.3K
- Experience Ui Bundle Deploy5.3K
- Experience Ui Bundle Salesforce Data Access5.3K
- Experience Ui Bundle Custom App Generate5.3K
- Dx App Analytics Query5.2K
- Platform Tracing Agentforce Configure5.2K
- Platform Value Set Generate5.2K
- Integration Eventing Cdc Configure5.2K
- Integration Eventing Subscription Configure5.2K
- Platform Trust Archive Manage5.2K
- Experience Ui Bundle File Upload Generate5.2K
- Experience Ui Bundle Features Generate5.1K