Sub topic 1
Why Third-Party Apps Need Vetting
Prerequisites
This chapter assumes you already know the following:
- Basic Salesforce administration: how to find things in Setup, and how profiles and permission sets control access.
- The difference between a sandbox and a production org, and why changes are tested in a sandbox first.
- What data and customizations your org holds, such as customer records, custom objects, automations, and integrations.
You do not need to write code. A few later chapters use the sf command line, but this chapter is about the reasoning that comes before any install.
What you are actually installing
An AppExchange app is code, configuration, and sometimes a connection to an outside service. When you install it, that content runs inside your org, next to your data. A package can contain:
- Custom objects, fields, page layouts, and Lightning components.
- Apex classes and triggers, which run server-side logic.
- Flows, validation rules, and other automation.
- Connected apps, remote site settings, or named credentials that let the org talk to external systems.
- Permission sets and profiles that define who can use the features.
Some apps are thin: a few components that add a button. Others are large products with their own data model and a vendor-hosted back end. In both cases the app becomes part of your org's behavior. A mistake in it can look like a mistake in your org.
The key point is that "installable with a click" does not mean "safe to install without thought." The install is quick because the platform packages everything for you. The decision about whether to trust the package is still yours.
The shared responsibility model
Security for an installed app is split between three parties. Each one controls different things.
| Party | What it is responsible for | What it cannot do for you |
|---|---|---|
| Salesforce | The platform itself, the AppExchange marketplace, and the Security Review program for listings that go through it | Guarantee that every app is free of defects, or watch how an app behaves after you install it |
| The publisher (the company that built the app) | The quality and security of its code and any hosted services, plus support and fixes | Know your org's data sensitivity, your compliance rules, or who in your company should have access |
| You, the customer | Deciding whether to install, who gets access, what data the app can reach, and how it is monitored | Inspect or change the code of a managed package, or fix a vendor's hosted service |
This split is why vetting matters. Salesforce and the publisher can lower the risk. They cannot decide on your behalf how much risk your org should accept. Only you know that a particular app would touch patient records, payment details, or contracts that must stay inside a region.
What can go wrong
The risks fall into a few groups. Knowing them helps you decide what to check later in the tutorial.
Data exposure
An app may be granted access to more data than it needs. This can happen through the profile or permission sets it ships with, through the way you assign them, or through Apex that runs in system mode and ignores a user's own access. If the app also sends data to an outside service, that data leaves your org's boundary. A customer list that was only visible to the sales team could end up in a vendor's database.
Excess permissions
Packages often include permission sets with broad rights, such as "View All Data" or "Modify All Data," because that is simpler for the publisher than listing exact objects. If you assign such a set to every user, one compromised account now has far more reach than before.
External connections
Many apps call out to web services, either to provide a feature or to send usage data. Each connection is a path for data to leave and for requests to come in. A vendor's service that is breached can become a route into the orgs of its customers. This has happened in the wider software industry and is the main reason to ask where an app's data goes.
Operational problems
Not every risk is about security. An app can:
- Hit governor limits (the per-transaction caps Salesforce enforces on things like queries and DML statements) and slow down or break other processes in your org.
- Conflict with existing triggers, flows, or validation rules, so that saves start failing.
- Add fields or objects that clutter layouts and confuse users.
- Block your own changes, because components in a package cannot always be edited or deleted freely.
Business and support risk
The publisher may go out of business, stop updating the app, or raise prices at renewal. If your process depends on the app, you inherit that dependency. A poorly supported app also costs time when something breaks and nobody answers.
Removal difficulty
Installing is easy. Removing can be harder. If the app created data of its own, such as records in its custom objects, uninstalling deletes that data. If your own customizations reference the app's fields or classes, the uninstall can be blocked until you remove those references. Planning for this before installing is cheaper than discovering it afterward.
Why a marketplace listing is not enough
The AppExchange gives you a useful starting point. Listings show the publisher, reviews, supported editions, and often a security review status. But a listing is a marketing page. It tells you what the publisher wants to present. It does not tell you how the app will behave with your data, your automation, and your users.
Three limits are worth remembering from the start. Later chapters cover them in detail.
- Review is a snapshot. A Security Review checks a particular version at a particular time. Later versions, and the publisher's hosted services, change.
- Review does not know your org. It cannot judge whether an app's access is appropriate for your data classification or your regulations.
- Reviews and ratings are opinions. They help, but a handful of five-star ratings says little about security or about how the app handles your volume of data.
For these reasons, vetting is a process you carry out, not a badge you read.
A practical vetting model
This tutorial walks through a sequence that keeps risk low at each step. Here is the overview, so you can see where this chapter fits.
- Decide the need. Write down what problem the app solves and what the alternative is, such as a built-in feature or a small amount of configuration. Every app you install adds surface area.
- Evaluate the listing and publisher. Look at credibility, support, documentation, and release history.
- Understand the Security Review. Know what it covers and where its guarantees stop.
- Identify the package type. Managed and unmanaged packages differ in upgrades and in how much you can see and change.
- Review requested access. List the data, permissions, and external connections the app needs.
- Test in a sandbox. Install there first and run realistic scenarios.
- Choose install options and permission sets. Grant the least access that lets people do their work.
- Verify, monitor, and plan to remove. Confirm the install, watch it over time, and know how to roll back.
The order matters. Each step produces information that the next one uses. For example, you cannot choose sensible permission sets until you have read what the app requests, and you cannot judge a rollback plan until you have seen what the app creates in a sandbox.
Scaling the effort to the risk
Not every app needs the same depth of review. A free utility that adds a field-formatting component and touches no sensitive data deserves less scrutiny than an app that syncs your full account and contact data to an external service.
Use these questions to decide how much effort to spend:
- Does the app read or write records that contain personal, financial, health, or contract data?
- Does it send data outside Salesforce?
- Does it run for all users, or only a small team?
- Would a failure stop a revenue-critical process?
- How hard would it be to remove after people depend on it?
If the answer to several of these is yes, treat the evaluation as a small project. Involve your security or compliance contacts, test with realistic data volumes, and write down the rollback plan before you install anything in production.
A short written record helps. For each app, note who requested it, what it is for, which version you evaluated, which permission sets you assigned, and who owns it. That record makes later audits and renewals much easier.
Common mistakes
- Installing in production to "see how it works." The trial belongs in a sandbox. Some changes from an install are hard to undo.
- Choosing "install for all users" by default. This grants access broadly and is difficult to tighten later without disrupting people.
- Treating the Security Review as full approval. It reduces risk but does not replace your own checks.
- Ignoring who owns the app internally. Without an owner, nobody tracks updates, license counts, or retirement.
- Skipping the removal question. If you cannot say how you would uninstall the app, you are not ready to install it.
Summary
Third-party apps run inside your org with your data, and the responsibility for the result is shared. Salesforce vets listings, the publisher builds and maintains the code, and you decide what to install, who gets access, and how to watch it. The main risks are data exposure, excess permissions, external connections, operational side effects, support dependence, and difficulty of removal. The rest of this tutorial turns those risks into concrete checks you can apply before and after each install.
Exercise
A colleague wants to install a popular AppExchange app directly in production because it has a Security Review badge and many positive ratings. Give two reasons from this chapter why that is not enough, and say what you would do first.
Show answer
First, a Security Review is a snapshot of one version at one time. It does not know your org's data sensitivity, your compliance rules, or how the app interacts with your own automation, and it does not cover later versions or the publisher's hosted services. Second, ratings are opinions and say little about security or about behavior with your data volume. Before production, I would evaluate the publisher and the app's requested permissions and external connections, then install it in a sandbox that resembles production, test realistic scenarios, rehearse the uninstall, and plan least-privilege access with permission sets.
Exercise
Name the three parties in the shared responsibility model for an installed app, and say who decides which users should have access to it.
Show answer
The parties are Salesforce, the publisher, and you, the customer. The customer decides which users get access, because only the customer knows its data sensitivity, roles, and compliance needs.