sf-permissions

Analyze Salesforce permission sets and groups to detect object, field, Apex, Visualforce, Flow, and custom permission access.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dcinzona/folios --skill sf-permissions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sf-permissions
Source: https://github.com/dcinzona/folios/tree/main/.agents/skills/sf-permissions
Command: npx skills add https://github.com/dcinzona/folios --skill sf-permissions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires simple-salesforce, rich, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Salesforce environments often suffer from poorly understood permission configurations across Permission Sets and Permission Set Groups, making it hard to enforce least privilege and detect access risk.

Core Features & Use Cases

  • Hierarchy view of Permission Sets and Permission Set Groups to reveal structure and ownership
  • Detection engine to answer "who has access to X?" across object, field, Apex, Visualforce, flows, and custom permissions
  • User permission analysis to list all permissions for a given user, including group-backed assignments
  • CSV/JSON exports and metadata reviews for governance and documentation

Quick Start

Install dependencies, authenticate with the sf CLI, and run the sf-permissions CLI to view hierarchy, detect access, or analyze a user.

Frequently Asked Questions about sf-permissions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Salesforce permissions to see who has access to specific objects and fields?

Audit Salesforce permissions by analyzing Permission Sets and Permission Set Groups to detect access across objects, fields, Apex, Visualforce, Flow, and custom permissions. The tool identifies who has access to specific resources and exports results to CSV or JSON for governance.

Can I visualize the hierarchy of Salesforce Permission Set Groups to understand ownership and structure?

Visualize Salesforce Permission Set Group hierarchy to reveal structural relationships and ownership. The tool maps nested permission configurations across one or more orgs, making it easier to enforce least privilege and identify poorly understood access risks.

Do I need the sf CLI and simple-salesforce to analyze user permissions across my org?

Yes, you need the sf CLI for authentication and the simple-salesforce Python dependency to query the API. Authenticate with the sf CLI first, then run the Python-based CLI to analyze a user's permissions, including group-backed assignments.

What's the best way to export Salesforce metadata and user permission analysis for compliance documentation?

Export Salesforce permission analysis to CSV or JSON formats for compliance documentation. The tool performs metadata reviews and user permission analysis, listing all assignments including group-backed permissions, then writes results to structured files for governance records.

How does Salesforce permission detection work for Apex classes, Visualforce pages, and Flow access?

Salesforce permission detection for Apex, Visualforce, and Flow access works by querying the Salesforce API to analyze Permission Sets and Permission Set Groups. The Python CLI inspects these configurations to pinpoint exactly which users have execution access.

Are there limitations when auditing custom permissions across multiple Salesforce orgs?

Auditing custom permissions across multiple Salesforce orgs requires proper API authentication for each environment. The tool safely detects access by analyzing Permission Sets and Permission Set Groups while safeguarding sensitive operations during the cross-org export process.