İçeriğe geç

Out as Well as In, for Outsiders

Bu içerik henüz dilinizde mevcut değil.

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?

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.

When an outsider leaves When an outsider leaves: what happened, what you do, and what's left. A partner's person leaves, and the partner's identity provider stops him: you disable his user from the contact, and agree how leavers reach you; the contact and his history are left, and the license goes back to the pool. A customer goes quiet, with no login for months: you downgrade her to contactless, disabling her and reactivating her on External Identity; her login still works, and the community license goes back. She closes her own account from the site: she uses User Self Deactivate, a setting and then a component or a flow; the result is the same as if you deactivated her, and deactivated is not deleted. She asks to be forgotten, a privacy request: you disable her, then clear her data, or scramble it with obfuscateUser; an anonymous user is left, and scrambled data can never be recovered. A partner leaves altogether, the whole company: you disable the users, then the account, up to 15 users with the account; its roles and groups are gone permanently, and re-enabling makes new users. Marked green: she can still get in. Marked amber: can't be undone. Footnote: external users can't be deleted, only deactivated; freeze a user when something still depends on them. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-06", "id": "DGM-IAM-EXU-05", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} WHAT HAPPENED WHAT YOU DO WHAT'S LEFT A partner's person leaves the partner's identity provider stops him Disable his user from the contact; agree how leavers reach you The contact and his history the license goes back to the pool A customer goes quiet no login for months Downgrade to contactless disable, then reactivate on External Identity Her login still works the community license goes back She closes her own account from the site User Self Deactivate a setting, then a component or a flow The same as if you deactivated her deactivated is not deleted She asks to be forgotten a privacy request Disable, then clear her data or scramble it with obfuscateUser An anonymous user scrambled data can never be recovered A partner leaves altogether the whole company Disable the users, then the account up to 15 users with the account Its roles and groups are gone permanently; re-enabling makes new users you leaves you leaves she uses leaves you leaves you leaves External users can't be deleted, only deactivated. Freeze a user when something still depends on them. HOW TO READ IT she can still get in can't be undone © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

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.

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).

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.

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):

  1. Clear what you can. “Manually or programmatically delete the values in non-required fields.”
  2. 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).
  3. Deactivate the user. For a customer, from her contact, as above (S17).
  4. 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.

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.

The practice: build it in your lab orgs. A site, self-registration, and the other org as a partner’s identity provider.

  • 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.