Sub topic 5
Checking permissions, data access, and external connections
This chapter assumes you can navigate Setup, know how profiles and permission sets grant access, and know which objects and fields in your org hold sensitive data. It covers what to inspect before you install an AppExchange app: what it can read and change, who gets access, and where it sends data.
Why access matters more than features
A listing describes what an app does. The package describes what it is allowed to do. These can differ. An app that "syncs leads to a marketing tool" may also ask to read every Contact field and call an external server. The Security Review checks the app's code against security requirements. It does not decide whether the access the app asks for is appropriate for your org. That decision is yours.
You are looking at three areas:
- Data access: the objects, fields, and record visibility the app needs.
- Permissions: the permission sets, profile changes, and system permissions it adds.
- External connections: the outside endpoints it calls and the OAuth access it requests.
Find the access requests
Start with the listing's documentation and its "Details" or "Technical" information. Many publishers publish a permissions or data-flow page. If none exists, ask the publisher for one. A vendor that cannot answer "which objects and fields do you read and write?" is a risk signal.
Then look at the package itself in your sandbox trial. A package can contain:
- Permission sets that grant object, field, and system permissions.
- Custom objects, fields, Apex classes, and triggers.
- Remote Site Settings and Named Credentials that allow callouts to specific endpoints.
- Connected apps, which define OAuth scopes for external access.
Pay attention to broad permissions. "Modify All Data", "View All Data", "Author Apex", and "API Enabled" deserve a written reason. Compare the request with the app's purpose. A document-generation app that needs Modify All Data on every object should prompt questions.
| Request | Question to ask |
|---|---|
| Read access to many objects | Does the feature really need each one? |
| Edit or delete access | Does it write back, or only read? |
| View All / Modify All Data | Can the app work with narrower object permissions? |
| Remote Site or Named Credential | Which company runs the endpoint, and where is it hosted? |
| OAuth scopes such as full or refresh_token | Why is long-lived access needed? |
Inspect external connections
Data that leaves Salesforce is outside your org's controls. For each endpoint, identify the owner, the data sent, the transport (it should be HTTPS), and whether the publisher documents retention and subprocessors.
In a sandbox where the package is installed, you can list the endpoints it authorized. This query uses the Tooling API:
sf data query --use-tooling-api --query "SELECT SiteName, EndpointUrl, IsActive FROM RemoteProxy" --target-org my-sandboxYou can also list the permission sets that belong to the package. Replace examplens with the app's namespace prefix:
sf data query --query "SELECT Name, Label, NamespacePrefix FROM PermissionSet WHERE NamespacePrefix = 'examplens'" --target-org my-sandboxOpen each permission set in Setup and read its Object Settings and System Permissions. The query output only tells you which sets exist.
For connected apps, check Setup, then Connected Apps OAuth Usage, to see which users authorized the app and which scopes it holds.
Decision flow
Common errors
- Trusting the badge. A passed Security Review does not mean the access is right for you.
- Reading only the listing. Marketing copy is not a permissions inventory. Inspect the installed package.
- Ignoring system permissions. Teams check object access and miss "Modify All Data" in the same permission set.
- Skipping the endpoint check. A new callout target means your data now goes to another company's infrastructure.
- Assuming access stays fixed. Upgrades can add permissions or endpoints. Repeat this review when you apply a new version.
Record your findings: the access requested, what you accepted, and who approved it. This record supports governance later and helps you compare versions after an upgrade.
Exercise
During a sandbox trial of a lead-scoring app, you find a package permission set with Modify All Data and a Remote Site Setting pointing to an unfamiliar domain. The app only needs to read Leads and write a score field. What do you do before moving forward?
Show answer
Do not approve the install for production yet. Ask the publisher why Modify All Data is needed and whether narrower object permissions on Lead would work. Also ask who operates the unfamiliar domain, what data is sent to it, and how it is stored. Check that the endpoint uses HTTPS. Proceed only if the answers justify the access. Otherwise reject the app or choose an alternative. Record the decision.