Use Site-Specific Sharing
Follow Along with Trail Together
Want to follow along with an expert as you work through this step? Take a look at this video, part of the Trail Together series. The clip starts at the 46:09 minute mark, in case you want to rewind and watch the beginning of the step again.
Sharing Records with High-Volume Portals and Sites
So far, for partners, you’ve used various sharing capabilities available for all Salesforce users. However, there are specific sharing capabilities available only for external users. Let’s start with sharing sets.
Take a look at a video that describes how site-specific sharing works.
You create sharing sets specifically for high-volume portals and sites to make it easier for a large number of external users to see records that they need to access. Sharing sets use profiles to give record access to a group of users, unlike sharing rules, which use roles and public groups.
The sharing mechanism used in sharing sets is called access mapping. A sharing set is essentially a container of access mappings. An access mapping can be defined in two ways:
- Using a direct lookup on the record that you want to share, such as an account associated to a case
- Using an indirect lookup on the record that you want to share, such as the account associated to an asset that’s associated to a case
Let’s take a look at these sharing sets and access mappings in action.
Working with Sharing Sets
In addition to setting up a partner portal, Ursa Major plans to set up a customer-facing help center in the future. They plan to have several thousand members in the next couple years. A big part of the help center will be case creation: customers can create cases for issues they’re having with their solar panel system.
If you remember, in an earlier step you set the external org-wide default on cases to private. That means each case owner can see only his or her own case. But Ursa Major wants to give customer users belonging to the same account access to all cases in the account.
To share case data, Maria creates a sharing set with access mapping on the Case object. The access mapping grants read access to case records where the user account matches the case account. As a result, users within the same account can see one another’s cases.
Follow along as Maria makes this magic happen.
- From Setup, enter
Digital Experiencesin the Quick Find box, then select Settings. - In the Sharing Sets related list, click New.
- Label:
Share Customer Cases - Sharing Set Name: [autopopulates]
- In the Select Profiles section, from the list of available profiles, add Customer Community User. This is the profile that you share cases with.
- In the Select Objects section, from the list of available objects, add Case. The list of available objects excludes:
- Objects with an org-wide sharing setting of Public Read/Write
- Custom objects that don’t have an account or contact lookup field
- To configure access for the selected profiles, in the Configure Access section, click Set Up next to Case.
- Grant access based on an account lookup:
- Select Account from the User dropdown menu.
- To determine lookup on the target object, select Account from the Target Case dropdown menu.
- For Access Level, select Read Only.
- Click Update.
- Click Save.
Now, whenever you add customer users to the account, they’ll have access to all other customer cases within the same account.
Next, create a customer user in your Trailhead Playground. (We’re asking you to take this extra step so we can check to make sure you’ve done the access mapping correctly.)
- From the App Launcher, select Accounts.
- Select the All Accounts list view.
- Click Burlington Textiles Corp of America.
- Click Jack Rogers in the Contacts related list.
- From the quick actions dropdown menu, select Enable Customer User.
- Change the following in the New User detail page.
- Email: [Enter your email address so you can get login information for your newly created users.]
- Username: [unique username in an email format]
- User License: Customer Community
- Profile: Customer Community User
- Select the Generate new password and notify user immediately checkbox.
- Click Save and OK.
Now check to make sure that Jack Rogers has access to cases associated with his account. To do this, first log in to the site as Jack.
- From the App Launcher, select Contacts.
- Select Jack Rogers.
- From the quick actions dropdown menu, select Log in to Experience as User.
In the portal, click the dropdown menu next to Jack's name and select My Account. You should be able to see the Cases related list, with two cases related to the Burlington account. Good work.
Resources
Video series: Who Sees What in Experience Cloud
Salesforce Help: Use Share Groups to Share Records Owned by High-Volume Experience Cloud Site Users