Create users without contact information to reduce the overhead of managing customers
and partners. You can add contacts later if you decide that you want them, like when you upgrade
to a more full-featured community license. You can add contactless users to new or existing
Experience Cloud sites.
Available in: Salesforce Classic and Lightning Experience
Available in: Professional, Enterprise, Performance,
Unlimited, and Developer Editions
User Permissions Needed
To create contactless users:
Manage User OR Manage External User OR Edit Self-Service User
Note The contactless users feature is available only with the External Identity license, which
enables access to the Salesforce Customer Identity product.
Create a contactless user by creating a user record with Apex, SOAP API, Bulk API, or Bulk
API 2.0.
User u = new User();
u.FirstName = 'Jane';
u.LastName = 'Doe';
u.Email = 'janedoe@test.com';
u.Alias = 'jane';
u.Username = 'janedoe@test.com';
u.CommunityNickname = 'Jane';
u.LocaleSidKey = 'en_US';
u.TimeZoneSidKey = 'GMT';
u.ProfileID = '00exx000000jvN4'; // Profile that's associated with the EI license
u.LanguageLocaleKey = 'en_US';
u.EmailEncodingKey = 'UTF-8';
insert u;
(Optional) Set up self-registration to register customers and partners as contactless
users.
Create a custom self-registration page in Visualforce.
From Setup, in the Quick Find box, enter All Sites and select
All Sites.
Next to your site name, click Workspaces.
From Experience Workspaces, select Administration, and then select
Login & Registration.
Select Allow customers and partners to self-register.
Choose a self-registration page type, and generate a self-registration handler.
Edit the self-registration handler to create the contactless user
programmatically.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.