Analyzes Salesforce Permission Sets, revealing access hierarchies, detecting specific permissions, and auditing user access across objects, fields, and Apex classes.
Purpose: Find which PS/PSG grant a specific permission
3.3 Agent Access Permissions
Purpose: Grant users access to Agentforce Employee Agents
Employee Agents require explicit access via the element in Permission Sets. Without this, users won't see the agent in the Lightning Experience Copilot panel.
Permission Set XML Structure:
```xml
Case_Assist
true
false
```
Key Points:
must exactly match the developer_name in the agent's config block
Multiple elements can be included for multiple agents
true grants access; false or omission denies access
Deploy and Assign:
```bash
# Deploy permission set
sf project deploy start --source-dir force-app/main/default/permissionsets/Agent_Access.permissionset-meta.xml -o TARGET_ORG
# Assign via Setup > Permission Sets > Manage Assignments
```
---
Agent Visibility Troubleshooting
When an Agentforce Employee Agent is deployed but not visible to users:
Step 1: Verify Agent Status
```bash
sf org open -p "/lightning/setup/EinsteinAgentforce/home" -o TARGET_ORG
# Agent should show Status: Active
```
Step 2: Check for Agent Access Permission
```bash
# Retrieve permission sets to check for agentAccesses
sf project retrieve start -m "PermissionSet:*" -o TARGET_ORG