Set Up a Community for External Identity
Learning Objectives
- Enable Salesforce Communities.
- Create and activate a community.
- Change the default login page.
Salesforce Communities and External Identity
You set up and manage Salesforce Identity for customers through Salesforce Communities. Using the Communities license that you get with Salesforce Identity, you can create and deliver pages for your customers and partners to self-register and log in to your community.
In this brief encounter, you get a glimpse of all that Communities offers. You can get to know it better with the Communities trail. But for now, we’ve got an external identity community to set up!
Enable Communities
To enable Communities for your org, you provide a community domain name. The community domain collects all your communities under one URL. Typically, your community domain is your company name.
It doesn’t matter now, but when you create the domain name in your production org, choose this domain name carefully—you can’t change it afterward.
- From Setup, enter Communities in the Quick Find box, then select Communities Settings.
- Select Enable communities.
- Enter a unique name for your community domain.
- Select Check Availability.
- Click Save, and then click OK. You can now create communities in your org.
Create Your Community
After you enable Communities, you’re ready to create your first community. Salesforce Communities makes it easy for you by providing several templates. When you create a community, default pages for login, self-registration, change password, forgot password, and your home page are set based on your community template.
For this demo, we’re using the Aloha template, which is designed for external identity communities. It has an App Launcher that lets users quickly find applications and access them using single sign-on authentication. By adding a selection of apps to the App Launcher, you’re making it easy for your customers to access everything they need. There’s no need for them to go elsewhere.
- If you’re not already at the Communities page, from Setup, enter Communities in the Quick Find box, then select All Communities.
- Click New Community. The Communities Creation wizard displays several templates to choose from. Hover over them to read their descriptions.
- Select the Aloha template.
- Click Get Started.
- Name it customers, and add customers at the end of the URL.
- Click Create.
After a brief intermission, your new community opens in Experience Workspaces. This is where you manage your external identity community. Administration is where we configure our external identity community login page.
Control Membership to Your Community
Use profiles to lock down your data so that external users see only what you want them to see. You certainly don’t want to give access to malicious users. A user who appears to be a customer can be a reaver (or, as they say on Earth, a hacker) in disguise. Profiles help prevent that from happening.
- From Experience Workspaces, select Administration, then select Members.
- Under Select Profiles, from the dropdown list, select All.
- In the list of Available Profiles, locate the Customers profile and then click Add to add it to Selected Profiles.
- Click Save.
Complete the Initial Community Setup
Publish the Community
Why publish your community now? You wouldn’t publish it yet in a production org, but our demo requires this step to avoid an error later on.
- At the top left, select Administration, then select Builder.
Now you’re at the tool that lets you easily brand your community pages. If you never opened this tool before, an introductory walk-through appears. Feel free to step through the walk-through before you continue.
- At the top right, click Publish, and in the confirmation dialogue, click Publish again. Then click Got it.
Behind the scenes, Salesforce creates login, password, and self-registration pages based on the Aloha template. You receive an email when the community is published. Continue on—you don’t have to wait for the email to come.
Review the New Pages
When a community is created with the Aloha template, pages customized for the Aloha experience are added. You can modify the Login & Registration page to determine the look and behavior of your customers’ login experience.
- From the top left, click
, then select Administration.
- Select Login & Registration. Notice that “Experience Builder Page” appears under Login and Password. These custom pages come with the Aloha template and were designed using Experience Builder.
- Scan over the Login & Registration page to see which login settings you can configure. For now, we’re going to keep the default values.
- Click Cancel.
Activate Your Community
- From the left, select Settings. Notice that the URL of your community appears under its name. You’ll use it soon.
- Click Activate Community, then click OK.
Salesforce sends you an email when the community’s activated.
View Your New Login Page
To view your login page, open your community URL in a private browsing (incognito) window to see what new users get when they click the URL. If you open the URL in a regular window, you see a page for someone who’s already logged in.
- If you’re not already there, from the left, select Settings.
- Right-click the URL and select Open Link in Incognito Window (in Chrome) or Open Link in New Private Window (in Firefox or Safari).
Replace the Logo on the Login Page
It’s easy to replace the default logo with your own. For this module, you use the Universal Deliveries’ logo file that we placed in our Salesforce Identity GitHub repository.
By the way, if the GitHub public repository is unfamiliar to you, it’s a great way to store code in the cloud. Developers can share code and related resources independent of any single corporation.
- From another browser window, go to the GitHub repository, https://github.com/salesforceidentity/IdentityTrail-Module3.
- Select identity_external_logo.png and save the logo on your local drive.
Now add the logo to your login page.
- If you closed Experience Workspaces, from Setup, enter Communities in the Quick Find box, select All Communities, then click Workspaces next to customer community URL.
- Select Administration, then select Login & Registration.
- Replace the logo. For Logo Type select File. Then select Choose File (or Browse depending on the browser you’re using). Select the file that you downloaded from GitHub and click Save.
Return to the login page in your private (incognito) browser and reload it.
Check it out. Your login page has the logo for our External Identity module.
Replacing a logo is a simple customization that you can do right from the Login & Registration page. This is just one way that you can use Experience Builder to brand your community.
What’s next? Let’s set up a way for visitors to register as customers right from the login page.