The Late Changes, What I Would Architect
Tento obsah zatím není dostupný ve vašem jazyce.
Checkpoint 3, part two of Securing Salesforce: Sharing and Visibility, module 6 of 6 in the chapter Reviewing a Security and Sharing Model. It’s the last module of the course.
The question this checkpoint answers: When the requirements change late, how much of your sharing model has to move?
Try the challenge first. This is my walkthrough of Checkpoint 3’s challenge, part B. If you haven’t taken the late changes through your own design yet, do that before you read on.
This is “What I Would Architect”: a possible viable solution, not the answer. Part one opened Steve Trucking’s model to the people outside. Now read section 9 of the brief. Three changes arrive late, the way they always do. I’ll take each one, count what it costs the sharing model, and then review the whole thing for scale.
The Data Architect course takes the same three changes from the data side: retention, deletion and the second org’s data are answered there (Checkpoint 3: Steve Trucking, the Whole Design). Here, it’s who sees what.
L1: Oakline, a fourth partner in 90 days
Section titled “L1: Oakline, a fourth partner in 90 days”Oakline Furniture wants to be live at three DCs in 90 days, with its own brand on the tracking page and messages, and Recipient personal data deleted 30 days after delivery.
Since Checkpoint 1, I’ve said the boundary follows the DC and the partner, structures the business already has. Oakline is the test. Let’s count.
| Part of the model | What Oakline adds |
|---|---|
| Coordinators | Three service territories, so three public groups, made by Field Service. One User Territory record for each coordinator. |
| Account team | One group and one criteria-based rule on Partner Code, the fourth of 50 |
| Manifests | Nothing. The flow already shares each manifest with its DC’s territory group. |
| Oakline’s DC managers | Three child accounts, two external roles each. The same profile, so the same sharing set covers them, unchanged. |
| Crews | Nothing. Dispatch sharing follows the assignment, whoever the partner is. |
| Recipients | Nothing for sharing. The brand is data on Oakline’s account; the action already knows the delivery’s partner from the link. The guest still sees nothing. |
One group and one rule. Everything else is records: territories, accounts, users. That’s what designing for the second instance buys you on the day the fourth one arrives.
Two things to get right on day one. Set the external roles before the first Oakline user is enabled, since the number can’t be raised later for existing accounts (External Roles). And Oakline’s integration user joins the source group of Checkpoint 1’s owner-based rule while it owns nothing, which costs nothing. Keep that thought for the scale review.
And the 30 days? The strongest way to stop people seeing personal data is for it not to exist. The Data Architect course builds it as a retention period on every partner’s account, one scheduled job, and the list of every copy the job has to reach. For sharing, the point is the order: everything above decides who sees Oakline’s Recipients for 30 days, and after that, nobody does.
L2: Gulf Coast, a second org
Section titled “L2: Gulf Coast, a second org”Steve Trucking is buying Gulf Coast Home Delivery: its own Salesforce org, and two of the same Retail Partners. Leadership wants one view of each shared partner’s deliveries within a year.
Start with the fact that frames everything: sharing doesn’t cross orgs. No role, group or rule in Steve Trucking’s org reaches a record in Gulf Coast’s, or the other way round. Each org has its own model, and each one is only as good as its own design.
So who should see what, in year one?
- Gulf Coast’s people stay in Gulf Coast’s org, with Gulf Coast’s model. Nothing changes for them on day one.
- Steve Trucking’s people see nothing of Gulf Coast’s org in Salesforce. Not because it’s secret from us, but because nobody’s job needs it yet.
- The one view lives where the Data Architect course puts it: in the warehouse, with Gulf Coast as a second carrier. Partner isolation has to hold there too. Whatever reads Redrock’s deliveries reads only Redrock’s rows, from both carriers.
- The shared partners see each carrier’s deliveries in that carrier’s own portal until the orgs are consolidated, if they ever are. That’s a decision for next year, not a sharing workaround for this one.
Now suppose a coordinator in Dallas needs to look up one Gulf Coast delivery. Salesforce Connect’s cross-org adapter can show another org’s records as external objects. But read chapter 12 before you build it: no share table comes with an external object, and the other org sees whoever the connection logs in as (External objects).
Option A: a named principal, one login for everyone. Every coordinator then sees what that one Gulf Coast user sees, and a restriction rule by partner is the only lock on the row (chapter 16 module 5).
Option B: per user, each coordinator with their own Gulf Coast login, so Gulf Coast’s own sharing travels with the data.
In my professional opinion, B, if it’s ever built, because Gulf Coast’s model then decides what Gulf Coast’s records show. One more check before anyone designs on it: the cross-org adapter’s password and OAuth 2.0 sign-in methods retire in Spring ‘27, and it now uses named credentials (Salesforce Connect Cross-Org Adapter Legacy Authentication Is Being Retired (opens in a new tab), Salesforce release notes, checked 2026-11-26). Prove per-user sign-in through a named credential in a pair of Developer Edition orgs first.
L3: photos and the assistant
Section titled “L3: photos and the assistant”Legal ruled that delivery photos showing people are kept no longer than 90 days, and install photos for the warranty period. And the Recipient assistant must never promise a time dispatch hasn’t confirmed, never reveal another Recipient’s address, and never share a partner’s order details beyond the one delivery.
The photos. Who sees a photo doesn’t change: it still follows its record, as Checkpoint 2 placed it. What changes is how long anyone sees it. The Data Architect course tags each photo when it’s taken, install or delivery, and the tag sets the rule. The Recipient’s link already expires seven days after delivery, inside both clocks.
The assistant. It runs as its own agent user, never an administrator, with object access from its actions and a role of its own (The Agent User). That user has to read deliveries to answer anyone, so its access can’t be the boundary. The action is.
You could write the three rules into the agent’s instructions. You should. But instructions aren’t the control. The assistant uses the same action as the tracking page: the link names one delivery, and the action returns a fixed set of fields for that delivery only. That’s chapter 20’s rule, scope every action to the verified customer (Scope every action), with the link as the verification.
- Another Recipient’s address: there’s no search action and no list of stops. An address the agent never receives is one it can’t reveal.
- A partner’s order details: the action returns this delivery’s items, status, window and photos. Not the manifest, not other orders.
- An unconfirmed time: the action returns the window dispatch confirmed, or “not yet confirmed.” There’s no other time to promise.
Then try to break it, with one more user in the test plan (The test plan: one more user). Ask for “the delivery before mine.” Give a neighbor’s address. Ask what else Oakline ordered. Change one character of the link. Ask with no link at all. Each answer should be nothing.
The scale review, on the whole model
Section titled “The scale review, on the whole model”Now chapter 22’s review, on all of it, at year three: about 1.83 million Work Orders in the org at any time, twelve DCs with Oakline’s (A Scale Review Before Go-Live). How many zeros?
- Share rows: groups, not people. Each Work Order has a row for the owner-based rule’s group, one for its partner’s group, and Field Service’s rows for its territory’s group. The DC managers’ sharing set writes none. The crews’ rows are today’s stops only, because the nightly job takes yesterday’s away. A few million rows, and none of them grows with the number of people.
- Buckets: the right tool for each count. Four partner rules of 50. Twelve DCs on territories and one sharing set, not on rules.
- Big owners: a finding. The partner integration users own every Work Order, and they have no role, as Salesforce advises. But they’re also the source group of the owner-based rule, and Salesforce names that exact move, a big owner going into or out of a source group, as the one that sets off a long recalculation (Skew). Adding Oakline’s new user is free. Removing a partner’s user, the day a partner leaves, recalculates hundreds of thousands of rows. So that change goes on the realignment calendar, with a window and a rehearsal, never on a busy Tuesday.
- Big parents: a finding I share. The Data Architect course found each DC account holding about 150,000 Work Orders, far past 10,000 children, and kept it because the sharing set needs the DC account. Salesforce warns that changing such an account’s owner, or moving its users, recalculates everything under it. So a regional manager who changes regions doesn’t take their DC accounts with them on a weekday.
- The rehearsal. Oakline goes live at year-one volume, but the design is reviewed at year three. Rehearse in a full copy sandbox, and time it.
Two findings, each with an owner and a date, like any other review (module 2). Neither one changes what anybody sees. Both change when we’re allowed to move things.
The option I didn’t choose
Section titled “The option I didn’t choose”The obvious alternative is to treat each late change as its own sharing project. A separate sharing model for Oakline, with its own rules per DC. Gulf Coast’s records pulled into Steve Trucking’s org on day one, with a sharing rule to hide them. The assistant’s limits written only into its instructions.
Each of those can be made to work. Together, they’re more rules, a model nobody can read top to bottom, and an agent whose boundary is a sentence. I don’t choose that design.
In my professional opinion
Section titled “In my professional opinion”The requirement is: a fourth partner live in 90 days, an acquired carrier in one view within a year, photos kept only as long as allowed, and an assistant that can’t reveal what it mustn’t, without losing any boundary from parts one and two.
My solution is: Oakline as one group, one rule and new records; Gulf Coast kept in its own org, with the one view in the warehouse and any lookup per user; photos that follow their records for a shorter time; and an assistant whose boundary is the action’s output, tested like a user. Then a scale review of the whole model, with two findings owned and dated.
The reason is: the model was built on the DC, the partner, the assignment and the delivery, so the late changes arrived as values and records, not as a redesign.
The option I didn’t choose was a sharing project per change.
In my professional opinion, the best sharing model is the one where you can name, for every record and every person, the reason they can see it, and still name it after the requirements change. That’s the course. Keep this design: if you take another course in the series, you’ll meet Steve Trucking again.
Explore
Section titled “Explore”- Checkpoint 3: Steve Trucking, the Whole Design, Data Architect
- A Scale Review Before Go-Live, chapter 22 module 6
- Testing Agents, chapter 20 module 6
- Steve Trucking brief
- Salesforce Connect Cross-Org Adapter Legacy Authentication Is Being Retired (opens in a new tab), Salesforce release notes (checked 2026-11-26)
