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

service-omni-permission-set-assign

Skill by forcedotcom

Assigns the required Omni permission sets, including Omni_Agent, to provisioned agent users in a Salesforce org. Built for Service Cloud admins who need agents to open the Omni widget and receive routed work.

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

Install service-omni-permission-set-assign

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/service-omni-permission-set-assign ~/.claude/skills/service-omni-permission-set-assign

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

Step-by-step: install service-omni-permission-set-assign in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill assigns one or more PermissionSets to a set of agent users through PermissionSetAssignment Data API calls. The default permission set is Omni_Agent, which the source says grants the OmniChannel widget, presence-status access, and demo-queue visibility. It first checks which assignments already exist with SOQL, then creates only the missing user and permission set pairs. It posts each assignment individually and re-queries at the end to confirm the final state.

The skill requires agent users created by a related skill, an authenticated sf CLI org, and a Service Cloud license. It blocks on production orgs and on missing users or permission sets. In run mode, it can deploy the bundled Omni_Agent metadata if that set is absent. It is create-only and does not remove existing assignments. It is intended for admins preparing agent users in Omni-Channel setups.

Written from the project's SKILL.md and checked against it.

What it can do

  • Assign permission setsCreates PermissionSetAssignment rows for each agent user and each listed permission set.
  • Detect missing pairsQueries existing assignments first so only missing user and permission set pairs are created.
  • Resolve agent usersFinds agent users by the agent{1..N}.<suffix>@example.com pattern and blocks if any are missing.
  • Self-heal Omni_AgentDeploys the bundled Omni_Agent metadata once in run mode when the set is absent.
  • Plan modeReports action_needed and exits read-only without deploying anything.
  • Final verificationRe-queries assignments after the POST loop and emits a JSON report with status and counts.

What you need

  • Salesforce org authenticated through the sf CLI
  • Service Cloud license
  • sf CLI 2.139.6 or later
  • jq 1.6 or later
  • Executing user with PermissionsAssignPermissionSets

Try asking

  • Assign Omni_Agent permissions to my three agent users in the sandbox
  • Repair missing Omni permission assignments for agents in my org
  • Grant Omni-Channel access to agent users before they open the widget

Good to know

  • Create-only. It does not remove existing assignments.
  • Assigns individual PermissionSets only, not PermissionSetGroups.
  • Self-heal covers only the bundled Omni_Agent set.
  • Blocked on production orgs by the safe_to_write guard.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/service-omni-permission-set-assign/SKILL.md, skills/service-omni-permission-set-assign/scripts/verify-and-assign.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash Read Write Edit Glob Grep

  • SKILL.md6 KB
  • assets/package.xml234 B
  • references/api-notes.md8 KB
  • scripts/verify-and-assign.sh17 KB

Alternatives to service-omni-permission-set-assign

All alternatives →

Compare with lead-triage, lead-finder or outreach-composer

service-omni-permission-set-assign: common questions

What does Omni_Agent do?

The source says Omni_Agent grants the OmniChannel widget, presence-status access, and demo-queue visibility. Without an assignment, agents cannot open the widget or receive routed work.

Will running this skill twice create duplicate assignments?

No. The skill checks existing pairs first and treats DUPLICATE_VALUE as a safety net for concurrent races. Re-running after success returns the reused status.

Can it assign permissions to my real users?

The skill derives users from the agent naming pattern rather than accepting a user id list, so it is designed not to assign demo permissions to named real users.

How do I install service-omni-permission-set-assign?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is service-omni-permission-set-assign free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is service-omni-permission-set-assign safe to use?

It scores 82 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 service-omni-permission-set-assign?

Similar skills: lead-triage, lead-finder, outreach-composer, cold-email.

service-omni-permission-set-assign Install

Add to stack

Loading.