Перейти до вмісту

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?

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?

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.

Self-registration, step by step Self-registration, step by step, and what you decide at each one. 1, the form: she fills in the fields you chose, an email address, a phone number or a username; fields you don't show get placeholder values. 2, verification: she proves the email or phone is hers, with a code by email or text message, or none. 3, a password, or not: include one so she always has a way in, or go passwordless, chapter 15; a password is required with no verification. 4, the handler runs, Apex generated for you, as a system user you choose, never a real admin; it checks she isn't already there; marked: match an existing contact only after she has verified. 5, her user is made, and her contact on an account, on a cloned, restrictive profile, and a business account you choose, or a person account of her own; marked: start narrow, and open up with permission sets. Footnote: the Configurable Self-Reg Page, as Salesforce Help describes it, checked 2026-11-06. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-06", "id": "DGM-IAM-EXU-04", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} WHAT HAPPENS WHAT YOU DECIDE 1. The form she fills in the fields you chose Email, phone or username fields you don't show get placeholder values 2. Verification she proves the email or phone is hers A code by email or text message or none 3. A password or not Include one, so she always has a way in or passwordless · ch 15; required with no verification 4. The handler runs Apex, generated for you As a system user you choose never a real admin; checks she isn't already there 5. Her user is made and her contact, on an account A cloned, restrictive profile a business account you choose, or a person account of her own you decide you decide you decide you decide you decide The Configurable Self-Reg Page, as Salesforce Help describes it, checked 2026-11-06. HOW TO READ IT match an existing contact only after she has verified start narrow; open up with permission sets © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

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

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

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.

Module 5: out as well as in. How an outsider leaves, and what’s left behind.

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