Out as Well as In, for Outsiders
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Module 5 of 5 in the chapter Customers and Partners, chapter 14 of Securing Salesforce: Identity and Access. Each module stands on its own.
The question this module answers: How does an outsider leave, and what’s left behind?
Nobody outside is ever deleted
Section titled “Nobody outside is ever deleted”Chapter 12 said provisioning is joins, moves and leaves, and that leaving is the one designs forget. For outsiders it’s forgotten even more, because nobody at your company hired them, so nobody at your company has a leaving process for them.
Start with one fact. “As it is with internal users, external users can’t be deleted. If you no longer want an external user to have access to a site, deactivate the user” (S5). Salesforce explains why: “merely deleting a user can result in orphaned records and the loss of critical business information” (S20). Her cases, her orders, the deals a partner’s person worked on, they stay.
So “leaving” always means switching off, never removing. What changes is how, and what’s left behind.
Five ways to leave
Section titled “Five ways to leave”A partner’s person leaves
Section titled “A partner’s person leaves”Module 3 ended with Tomás leaving his company. His company’s identity provider stops sending assertions for him, so he can’t log in to your site. Good. But his user is still active, and still holds a license, because just-in-time never removes anyone.
So you disable him. On his contact, in the actions menu, Disable User (S4). “When you disable users, Salesforce deactivates them and invalidates their usernames by renaming them” (S4). His license goes back to the pool (S15). His contact, and the history on it, stays for the next person who works that account. This course hasn’t yet checked exactly what’s kept on the contact.
The harder part isn’t the click. It’s knowing. Agree with every partner how leavers reach you: a list every month, a call to your API, or provisioning where it fits (chapter 12). Then check that list against your site’s users. A partner’s leaver who is still active is easy to miss: nobody at your company hired him, so nobody here notices he’s gone.
And if something still depends on his user, a record only he owns, a process that sends him emails, you may not be able to deactivate him yet. Then freeze him: he can’t log in, but “freezing users doesn’t make their user licenses available” (S15). Move the ownership, then deactivate.
A customer goes quiet
Section titled “A customer goes quiet”Amara hasn’t logged in for eight months. She might come back. Do you want her holding a Customer Community license while she’s away?
Module 1’s downgrade: disable her, then reactivate her on an External Identity license, as a contactless user (S4). She keeps her login. The community license goes back for someone who needs it. When she comes back and needs more, give her a contact and upgrade her again (module 1).
She closes her own account
Section titled “She closes her own account”Some customers want to leave on their own terms, without writing to support. Salesforce has a setting for that: User Self Deactivate. “Let external Experience Cloud site and Chatter users deactivate their own accounts. The results are identical to an administrator-initiated deactivation” (S18).
You turn it on in User Management Settings, then give her a way to use it: on Aura sites, the Customizable User Settings component; on LWR and Visualforce sites, “create a flow that external users can run” (S18). And note Salesforce’s warning: “Deactivation is not the same as deletion” (S18). Her records stay. If she wants them gone, that’s the next case.
She asks to be forgotten
Section titled “She asks to be forgotten”Many privacy laws let a person ask a company to delete their personal data. Salesforce’s own page names the EU’s GDPR, Japan’s PIPA and Australia’s Privacy Act (S17). Which laws apply to you, and what they require, is a question for your own privacy and legal team, not for this course. What this course can tell you is what Salesforce gives you to do it.
Since you can’t delete her user, Salesforce’s steps are (S17):
- Clear what you can. “Manually or programmatically delete the values in non-required fields.”
- Anonymize what you must keep. “Anonymize data in required fields. For example, change an email address to ‘deleteduser@delete.myco.com.’” A customer gets no verification email when you do it (S17).
- Deactivate the user. For a customer, from her contact, as above (S17).
- Delete her third-party links. “Delete any third-party account links used for authentication” (S17): the link to her Google or Apple account from social sign-on (module 2).
Or scramble the user’s personal data permanently, with the Apex method System.UserManagement.obfuscateUser. “When you invoke the method for a user, the data becomes anonymous, and you can never recover it” (S19). So it’s switched off until you turn on Scramble Specific Users’ Data (S19). Use it only when you mean it.
That clears her user. Her contact, her cases and her orders are other records. Salesforce suggests finding everything tied to her contact with a flow and a report (S17). Plan that before the first request arrives, not after.
A partner leaves altogether
Section titled “A partner leaves altogether”The whole partner company goes: the contract ends, the partner is bought. You can’t delete a partner account, “but you can disable them. Disabling a partner account disables partner users associated with the account” (S16).
Know what that does before you click (S16):
- “Up to 15 active and inactive external users associated with the account are permanently disabled,” and removed from “all sites, groups, teams, permission sets, and sharing rules.”
- More than 15, and you can’t: “Disable the users before disabling the account.”
- “Roles and groups associated with the account are permanently deleted and not moved to the Recycle Bin.”
- If they come back, re-enabling a contact “creates a partner user record that is not associated with the previous partner user and role.”
That’s why Salesforce recommends disabling a partner account “only if the account was accidentally enabled for site access” (S16). For a partner who has simply left, disabling the users and keeping the account is usually enough. The account, its history and its roles stay, in case the partner comes back.
Test knowledge. In my experience, know that external users are deactivated, never deleted, and what disabling a partner account removes. Be ready to recommend how leavers from a partner reach Salesforce.
What’s next
Section titled “What’s next”The practice: build it in your lab orgs. A site, self-registration, and the other org as a partner’s identity provider.
What an architect decides here
Section titled “What an architect decides here”- How leavers reach you from every partner, and who checks the list.
- When quiet customers move to contactless.
- Whether customers can close their own accounts.
- The process for a privacy request, with your privacy team, before the first one arrives.
- Disable the users or the partner account, and why.
Explore
Section titled “Explore”- Disable Partner Accounts (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- Enable User Self-Deactivation (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- Data Deletion for the Salesforce Platform (opens in a new tab) (Salesforce Help; checked 2026-11-21)
