npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

sf-permset-viewer

v1.0.2

Published

View Salesforce Permission Set details in a beautiful HTML interface

Readme

🔐 Salesforce Permission Set Viewer

A powerful command-line tool to visualize and analyze Salesforce Permission Sets with beautiful, interactive HTML reports.

License Node Salesforce CLI

📸 Screenshots

List

View

✨ Features

📋 List Permission Sets

  • Interactive HTML Dashboard with real-time filtering and sorting
  • Summary Statistics showing custom vs standard, assignments, and more
  • Advanced Filtering by type (custom/standard) and assignment status
  • Multi-column Sorting with visual indicators
  • Smart Search across name, label, description, and more
  • Export to CSV with filtered data
  • Pagination with configurable page sizes
  • Alternative formats: Table, JSON, CSV

🔍 View Permission Set Details

  • Comprehensive Overview with all metadata
  • Organized Sections:
    • Permission Set Groups
    • User Permissions (enabled only)
    • Object Permissions (CRUD + View/Modify All)
    • Field Permissions (FLS)
    • Custom Permissions
    • Tab Settings
  • Resizable Sidebar for easy navigation
  • Column Sorting on all data tables
  • Search Functionality within each section
  • Export to CSV for any section
  • Pagination for large datasets

📦 Installation

Prerequisites

  • Node.js (v14 or higher)
  • Salesforce CLI (sf or sfdx)
  • Authenticated Salesforce org

Install

npm install -g sf-permset-viewer
 

🚀 Usage

List All Permission Sets

# HTML format (default) - opens in browser
sf-permset-viewer list -o myorg

# HTML without auto-opening
sf-permset-viewer list -o myorg --no-open

# Console table format
sf-permset-viewer list -o myorg -f table

# JSON format
sf-permset-viewer list -o myorg -f json

# CSV format
sf-permset-viewer list -o myorg -f csv

View Permission Set Details

# View with auto-open in browser
sf-permset-viewer view -o myorg -p MyPermissionSet

# View without auto-opening
sf-permset-viewer view -o myorg -p MyPermissionSet --no-open

📖 Command Reference

Global Options

  • -h, --help - Display help information
  • -V, --version - Display version number

list Command

Lists all Permission Sets in the org.

Options:

  • -o, --org <username> - Required. Salesforce org username or alias
  • -f, --format <type> - Output format: html, table, json, csv (default: html)
  • --no-open - Don't automatically open HTML in browser

Examples:

# Basic list with HTML output
sf-permset-viewer list -o myorg

# List as JSON
sf-permset-viewer list -o myorg -f json

# List as CSV for Excel
sf-permset-viewer list -o myorg -f csv > permsets.csv

view Command

View detailed information about a specific Permission Set.

Options:

  • -o, --org <username> - Required. Salesforce org username or alias
  • -p, --permissionset <name> - Required. Permission Set API name
  • --no-open - Don't automatically open HTML in browser

Examples:

# View permission set
sf-permset-viewer view -o myorg -p Custom_Access

# View without opening browser
sf-permset-viewer view -o myorg -p Custom_Access --no-open

🎨 Features in Detail

List View Features

📊 Summary Statistics

  • Total Permission Sets count
  • Custom vs Standard breakdown
  • Total user assignments
  • Unassigned permission sets count

🔍 Advanced Filtering

  • Search: Real-time search across multiple fields
  • Type Filter: Show all, custom only, or standard only
  • Assignment Filter: Show all, assigned only, or unassigned only

📑 Interactive Table

  • Sortable Columns: Click any header to sort
  • Visual Indicators: Up/down arrows show sort direction
  • Hover Effects: Interactive row highlighting
  • Responsive Design: Works on different screen sizes

💾 Export Options

  • Export filtered and sorted data to CSV
  • Maintains current filters and sort order

Detail View Features

📂 Organized Sections

Navigate between different permission types:

  • Permission Set Groups: Groups this permission set belongs to
  • User Permissions: System-level permissions (enabled only)
  • Object Permissions: CRUD and View/Modify All for each object
  • Field Permissions: Field-level security (FLS)
  • Custom Permissions: Custom permission assignments
  • Tab Settings: Tab visibility configuration

🎯 Key Information Panel

Quick access to:

  • API Name and Label
  • License type
  • Creator and modifier information
  • Creation and modification dates
  • Namespace prefix
  • Session activation requirements
  • Related groups count
  • Assigned users count
  • Description

⚡ Performance Features

  • Resizable Sidebar: Drag to adjust width
  • Pagination: Handle large datasets efficiently
  • In-section Search: Find specific items quickly
  • Column Sorting: Sort any column ascending/descending

📁 Output Files

All HTML reports are saved to the output/ directory:

output/
├── permission-sets-list-1234567890.html
├── permset-Custom_Access-1234567891.html
└── permset-Sales_User-1234567892.html

Data Fetching

The tool queries multiple Salesforce objects:

  • PermissionSet - Main permission set metadata
  • PermissionSetAssignment - User assignments
  • PermissionSetGroupComponent - Group memberships
  • ObjectPermissions - Object-level permissions
  • FieldPermissions - Field-level security
  • SetupEntityAccess - Custom permissions
  • PermissionSetTabSetting - Tab configurations

Performance

  • Chunked queries for large permission sets
  • Efficient pagination for large datasets
  • Client-side filtering and sorting
  • Minimal API calls

Areas for Contribution

  • Additional export formats (PDF, Excel)
  • Permission comparison between multiple permission sets
  • Permission set assignment management
  • Profile to permission set converter
  • Performance optimizations
  • UI/UX improvements

📝 License

This project is licensed under the MIT License (c) Mohan Chinnappan

🗺️ Roadmap

  • [ ] Permission set comparison tool
  • [ ] Bulk assignment management
  • [ ] Permission set cloning
  • [ ] Profile analysis and conversion
  • [ ] Effective permissions calculator
  • [ ] Permission set dependency graph
  • [ ] Export to metadata format
  • [ ] Dark/Light theme toggle

Made with ❤️ for the Salesforce Community