Customers Make Themselves
เนื้อหานี้ยังไม่มีในภาษาของคุณ
Module 4 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 do customers create their own users, and where do they land?
A stranger makes a record
Section titled “A stranger makes a record”Think about what self-registration really is. Someone you’ve never met comes to your website, and it says log in, register, or log in with social. She clicks Register, fills in a form, and Salesforce makes records for her: a user, and probably a contact on an account.
Nobody at your company approved her. Nobody checked who she is. That’s the point: Amara Nwosu wants to check her order at nine at night, and nobody’s there to make her a login.
So every setting in this module answers one question: when a stranger makes herself, where does she land, and what can she reach?
Turn it on, and choose the page
Section titled “Turn it on, and choose the page”Self-registration lives on the same Login & Registration page as module 2’s login options: “Allow customers and partners to self-register” (S13). Then you choose the kind of page (S12):
- The Default Page. A simple page with basic styling, that you can take over completely with Visualforce and Apex.
- A Visualforce Page, built from scratch.
- The Configurable Self-Reg Page. The one I’d start with. You choose what to collect and whether she verifies, and Salesforce “generates a handler that you can modify” (S12).
- An Experience Builder Page. Your brand, drag and drop. But it “limits users to registering with a username and password, instead of other identifiers such as an email address” (S12).
Every site comes with default login, password and self-registration pages and their Apex controllers (S14). Making them look like your brand is chapter 15. Here we care about what happens behind the page.
What she’s asked, and how she proves it
Section titled “What she’s asked, and how she proves it”What she fills in. The Configurable Self-Reg Page lets her “sign up with only an email address or phone number, instead of having to create a username and password” (S13). You pick the fields. Ask for little: you can get more later, “building a member’s profile through progressive profiling powered by the login flow” (S13). One thing to know: a field you don’t show still gets filled, with a placeholder. Leave out Last Name, and she gets one “like SiteUser1550768707871” (S13). Ask for the name, or your reports fill up with placeholders.
How she proves it. For Verification Method, choose “either Email or Text Message”, and she gets a code to type in; or None (S13). A verified email or phone number is the least you know about a stranger. I’d always verify.
A password, or not. “To prevent users from being locked out, it’s best to require them to create a password at sign-up. That way, users always have a way to log in” (S13). Without a password, you must set up passwordless login first (chapter 15). And if you chose no verification, you must include a password, or she can’t log in at all (S13).
Where she lands
Section titled “Where she lands”This is the part that matters most for security.
The profile. Salesforce’s advice is clear: “Assign a cloned version of a standard site profile as the default for self-registration. For example, assign a cloned version of the External Identity User profile. Avoid using a standard site profile as the default.” And: “Use a restrictive profile as the default. If needed, open up access using permission sets or sharing rules” (S13). Every stranger gets this profile. Make it the narrowest one in the org.
The account. Two choices (S13):
- A business account you choose. Every new user becomes a contact on it. Fine for a holding account, “Self-registered customers”, that you sort out later. Never a real customer’s account.
- Blank, “to save new users under individual person accounts for business-to-consumer commerce.” Each person her own account (module 1).
And you can override the account in the handler, for example to make her a contactless user instead (S3, S13; module 1). Start her contactless, and give her a contact and a community license once she’s a real customer.
Who makes the records. “Execute Registration As” is the user the handler runs as, so every record it makes traces back to it. Salesforce: “In production, you typically create a system user for the Execute Registration As user” (S13). Don’t put a real admin’s name there. When an auditor asks who created ten thousand contacts last year, the answer should be “self-registration”, not your name.
The handler, and the person who’s already there
Section titled “The handler, and the person who’s already there”Amara bought from you last year, by phone. She’s already a contact. Now she registers on the site. Should she get a second contact?
The standard page won’t know. The handler can. Salesforce: “you can add logic to ensure that the new member’s email address and phone number are unique in your org” (S13). Your handler can find her existing contact and attach her new user to it, or stop and tell her to sign in instead. Be careful about how you match, for module 3’s reason: a stranger chose that email address. Match to an existing contact only after she’s verified that address.
What the handler can’t do: change the questions on the form. Those come from the fields you selected (S13).
People who never register
Section titled “People who never register”Not everyone needs a login. Steve Trucking’s recipients follow a delivery with a tracking link, and most of them never sign up. Those visitors aren’t users at all: they’re the site’s guest user, one record shared by everyone on the internet. What the guest can see is the Sharing and Visibility course’s chapter 14, modules 1 and 2. For those who do want an account, social sign-on (module 2) or self-registration, with verification.
Test knowledge. In my experience, know how self-registration works on an Experience Cloud site: the default profile and account a new user lands on, verification, and when you’d use a handler. Know that a self-registered user can be made contactless.
What’s next
Section titled “What’s next”Module 5: out as well as in. How an outsider leaves, and what’s left behind.
What an architect decides here
Section titled “What an architect decides here”- Whether self-registration is on at all, and on which sites.
- What she’s asked, and how she verifies it.
- The profile and account she lands on, the narrowest you can.
- Who the handler runs as, a system user.
- What happens when she’s already there.
Explore
Section titled “Explore”- Use the Configurable Self-Reg Page for Easy Sign-Up (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- Self-Registration Page Types (opens in a new tab) (Salesforce Help; checked 2026-11-21)
