Another business in the org could read their deals. Counting found it.

A residential developer works in one Salesforce org together with the other businesses of its group. Everybody assumed each business saw only its own deals. In fact another sales team could open the developer’s deals and its payments. With the client’s own team I worked on the audit and the fix, and the separation was rolled out identically on development, staging and production.

Delivered with the client’s team. No client name and no record counts are published.

Why did nobody see the exposed deals?

Nothing had failed, so no alarm ever went off. Salesforce lists what a user is allowed to open and stays silent about what they ought not to see. The split between businesses seemed finished because each one had its own record types, but record types only choose layouts and picklist values. Who can open a record is settled by the organisation wide default, by sharing rules, and by the View All and Modify All permissions.

How did the audit find it?

It counted first and read settings second. Sign in as someone from team A, report on deals limited to team B’s record type, and note how many rows come back. A report only ever returns records its user may open, so that figure is precisely what team A can reach right now. Profiles and sharing settings are read afterwards, to explain the figure rather than to stand in for it.

What was changed, and in which order?

  • 01Deals: a permission withdrawn

    View All was taken off the sales profile in the sequence Salesforce insists on: Modify All on quotes first, then View All on quotes, then View All on opportunities.

  • 02Payments: default set to private

    The default for payments went from public read and write to private, because taking permissions away had no effect while it stayed public.

  • 03Rules after the recalculation

    One sharing rule deployed mid recalculation failed with ALREADY_IN_PROCESS and dragged the whole deploy back, so payments sat private with no rules. Rules now wait for a query confirming the recalculation is complete.

  • 04A written runbook

    Each change, the query that proves it and how to undo it, held by the client’s team.

Why were there two causes for one symptom?

Deals and payments were exposed through different doors. For deals the door was a permission on a profile; for payments it was the default. Closing the first door everywhere would have secured deals, left payments open and still produced a report calling the job done. So each object is asked the same four things separately: its default, every View All or Modify All grant on it, its sharing rules, and a count.

What shared orgs ask before starting

  • QCould staff lose access during the change?

    Yes, and that is why sequence matters: development and staging first, the default before any rules, rules only once the recalculation is confirmed, and a runbook describing the way back.

  • QAre separate record types and apps not enough?

    No. They control what a user is shown, not what that user can open; another team’s records stay a single search away for anyone whose access permits it.

  • QWhere do access risks usually come from?

    From grants given in a hurry years ago. The permissions audit lists which to read first.

Serhii Skrypnyk, Senior Salesforce Administrator, Salesforce certified, on the platform since 2018. Reviewed 23 November 2026.

Count what one team can open of another’s

Wherever several companies, brands or teams share an org, every object needs those four answers. Run the report test as one user from each team. A count above zero where you expected zero means record types were never doing the separating. Send me the object and both counts, and my reply describes what the fix would involve and what it would cost.