ALWAYS USE THIS SKILL to assign permission sets to org users. Assign one or more permission sets to org users using the sf org assign permset command. TRIGGER when the user asks to assign, grant, give, add, or apply permission sets to users, admins, specific orgs, or specific users. Supports granting permissions, giving access, and adding permission sets to default admin or specific users via --on-behalf-of. DO NOT TRIGGER for listing permission sets or checking user permissions.
Start a fresh conversation. Replace the highlighted placeholders.
Use dx-org-permission-set-assign to assign [permission set API names] to [target-org CLI alias] for [user CLI aliases], returning structured assignment results only after I explicitly confirm the access change.
Required inputs
[permission set API names]
[target-org CLI alias]
[user CLI aliases]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: dx-org-permission-set-assigndescription: "ALWAYS USE THIS SKILL to assign permission sets to org users. Assign one or more permission sets to org users using the sf org assign permset command. TRIGGER when the user asks to assign, grant, give, add, or apply permission sets to users, admins, specific orgs, or specific users. Supports granting permissions, giving access, and adding permission sets to default admin or specific users via --on-behalf-of. DO NOT TRIGGER for listing permission sets or checking user permissions."metadata: version: "1.0" domains: ["Developer Experience"] relatedSkills: - "platform-permission-set-generate" cliTools: - tool: ["sf"] semver: ">=2.0.0"
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-of if specific users mentioned
Workflow
Match user request to command in table below
Execute via Bash tool: sf org assign permset with appropriate flags and --json flag
Return result
If error occurs, check the failures array in JSON output for details.
Command Decision Table
User intent
Execute via Bash tool
Assign one permission set to default admin
sf org assign permset --name <PermSetName> --json
Assign multiple permission sets to default admin
sf org assign permset --name <PermSet1> --name <PermSet2> --json
Assign to specific org
sf org assign permset --name <PermSetName> --target-org <alias> --json