Credits & Attribution
PSLab - Permission Set Lab
This skill was inspired by PSLab, an open-source Salesforce permission analysis tool created by Oumaima Arbani.
- GitHub: github.com/OumArbani/PSLab
- Author: Oumaima Arbani
- License: MIT
What We Learned from PSLab
PSLab's Apex implementation provided the conceptual foundation for this Python-based skill:
- Permission Hierarchy Visualization - The tree structure approach for showing PS/PSG relationships
- Permission Detection Queries - The SOQL patterns for finding "who has access to X"
- User Permission Analysis - The approach to tracing permissions through PSG membership
- Setup Entity Access - How to query Apex class, VF page, and Custom Permission access
Why Python Instead of Apex?
While PSLab uses Apex deployed to the user's org, this skill uses Python with simple-salesforce for several reasons:
- No deployment required - Works with any org via API
- Cross-org analysis - Can compare permissions across multiple orgs
- CLI integration - Fits the Claude Code terminal workflow
- Rich TUI output - Better terminal visualization with the
richlibrary
License Compliance
This skill is a clean-room reimplementation of PSLab's concepts in Python. No code was directly copied. The SOQL query patterns are based on standard Salesforce APIs and are not copyrightable.
Other Resources
Salesforce Documentation
Libraries Used
- simple-salesforce - Salesforce API client for Python (Apache 2.0)
- Rich - Terminal formatting library (MIT)