Sub topic 3
Granting Access with Permission Sets
Assume you know Salesforce Setup, profiles, permission sets, sandboxes, and the kinds of data your org stores. The goal is least privilege: grant only the access the app needs, to only the users who need it.
Grant access with permission sets
A permission set is a collection of permissions assigned to individual users without changing their profiles. Prefer the app’s documented permission set over broad profile changes. Assign it first to one test user, then expand access after validation.
sf org assign permset --name Example_App_User \
--target-org my-sandbox \
--on-behalf-of [email protected]Use the actual permission set name from the installed package. Review its object, field, Apex, API, and system permissions before assigning it.
Verify the install and side effects
Check that the expected package version is installed. Then test realistic workflows with a user who has only the intended permission set.
sf package installed list --target-org my-sandboxVerify that:
- The app’s tabs, objects, flows, and permissions work as documented.
- Users cannot view or edit unrelated records.
- Scheduled jobs, flows, triggers, and integrations behave correctly.
- Reports, sharing rules, login history, and audit logs show no unexpected activity.
- The app does not change existing automation or data unexpectedly.
Manage licenses and upgrades
Some apps require per-user licenses in addition to Salesforce permissions. Track who has a license, why they need it, and when it expires. Before an upgrade, read the release notes and test the new version in a sandbox. Confirm changes to permissions, data models, automation, and integrations before production deployment.
| Control | Evidence to keep |
|---|---|
| License assignment | User, license, purpose, and date |
| Upgrade approval | Release notes and sandbox test results |
| Access review | Permission set assignments and owner |
Monitor and govern installed apps
Assign an owner for each package. Review installed packages, active users, integration credentials, API activity, and vendor security notices on a regular schedule. Remove unused assignments promptly. Record exceptions and review them with your security or compliance team.
Uninstall and plan a rollback
Document dependencies before uninstalling. Export or back up app data, identify reports and flows that reference the package, and rehearse the process in a sandbox. Uninstall only after confirming that dependent metadata and integrations can be removed or replaced.
sf package uninstall --package 04tXXXXXXXXXXXXXXX \
--target-org my-sandbox \
--wait 10A rollback plan should name the restore point, replacement process, responsible owner, and user communication steps.
Exercise
Why assign an app’s permission set to one test user before assigning it broadly?
Show answer
It limits exposure while you verify the app’s behavior, data access, and side effects.