Sub topic 7
Choosing who gets access at install time
This chapter assumes you can find your way around Setup, know what a profile is, and have a sandbox available. The install screen has an access choice that is easy to click through and hard to undo cleanly. It decides which profiles can use the app's objects, fields, and pages the moment the install finishes.
The three install options
When you install from AppExchange, Salesforce asks who should get access. The labels in the install screen are:
| Option | What it does | Typical use |
|---|---|---|
| Install for Admins Only | Grants access to administrators only. Other profiles get none. | First install, any trial, anything you have not fully reviewed |
| Install for All Users | Grants access to all internal user profiles at once. | Low-risk apps that every employee is meant to use |
| Install for Specific Profiles | Grants access only to the profiles you select. | Apps for a defined team, such as Sales or Support |
Admins Only is the safest starting point. Only a few trusted people can see the app's tabs, objects, and fields. You can widen access later, but you cannot easily take back what users have already seen or edited.
Why "All Users" is risky
All Users is fast. It is also the option most likely to expose data or features to people who should not have them. If the app adds fields to objects such as Account or Contact, those fields become visible to every profile. A new tab or Apex class might also become available to people with no business reason to use it.
If the app writes records or sends data to an external service, a broad grant increases the number of people who can trigger that behavior. Use All Users only after you have reviewed the app's requested access and tested it in a sandbox.
How the choice fits into the install flow
Installing with the CLI
The Salesforce CLI exposes the same choice through the --security-type flag. The example below installs into a sandbox for administrators only. Replace the placeholder 04t ID with the one from the listing.
sf package install --package 04tXXXXXXXXXXXXXXX --target-org my-sandbox --security-type AdminsOnly --wait 10The flag accepts AdminsOnly or AllUsers. The CLI does not offer a per-profile choice. If you want Specific Profiles, use the install screen in the browser, or install as Admins Only and grant access afterward. The second approach works well with the next chapter's topic, permission sets.
Profiles versus permission sets
The install option works at the profile level. That is a blunt tool. Two people on the same profile may need different access to the app, and a profile-level grant gives both of them the same thing.
For that reason, many teams install as Admins Only and then assign the app's permission sets to named users. This keeps the install step simple and moves the real access decisions to a layer you can adjust per person.
Some apps ship with permission sets and need no profile-level access at all. Check the app's documentation before you choose, because a broad install option can grant more than the permission sets would.
Common mistakes
- Choosing All Users to "get it working." If users cannot see the app after an Admins Only install, assign a permission set to those users. Do not widen the install.
- Installing in production with the default you did not read. Read the selected option before you click Install, every time.
- Assuming the option controls external access. The install option controls who can use the app inside Salesforce. It does not limit what the app can do through connected apps, remote site settings, or API calls. Those need separate review, as covered earlier in this tutorial.
- Forgetting guest and portal users. Check whether the app exposes anything to Experience Cloud or guest profiles, and confirm those profiles do not get access by accident.
A practical rule
Pick the narrowest option that lets the right people test or use the app. For a sandbox trial, that is nearly always Admins Only. For production, use Admins Only first, then grant access to named users or groups through permission sets as they are approved.
Exercise
Your team has tested a package in a sandbox and wants to roll it out to production for five sales reps out of two hundred users. Which install option do you choose, and how do you give the five reps access?
Show answer
Install for Admins Only, then assign the app's permission set to the five reps. Specific Profiles would also work if all five share a profile that no one else uses, but that is rarely true. Permission sets give per-person control. All Users would expose the app to about 195 people who do not need it.