Agent skill · forcedotcom

dx-org-permission-set-assign

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.

What it needs

About 3k tokens when loaded.

What this skill does

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 assignpermissionset — 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 1. Match user request to command in table below 2. Execute via Bash tool: sf org assign permset with appropriate flags and --json flag 3. 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 Assign to specific user(s) sf org assign permset --name <PermSetName> --on-behalf-of <username1> --on-behalf-of <username2> --json Assign multiple sets to specific users sf org assign permset --name <PermSet1> --name <PermSet2> --on-behalf-of <username1> --on-behalf-of <username2> --json --- Rules / Constraints Constraint Rationale ----------- ----------- Always use --json flag Provides structured output for reliable parsing and error handling Permission set names are case-sensitive Use exact API name …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills forcedotcom/dx-org-permission-set-assign--b012c3

View the source on GitHub

Browse the @skills marketplace