Skip to main content

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.

(This 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 our partners, we’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.

Let’s take a quick look at a video that describes how site-specific sharing works.

We create sharing sets specifically for high-volume portals and site to make it easier for a large number of external users to see records 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 you want to share, such as an account associated to a case.
  • Using an indirect lookup on the record you want to share, such as the account associated to an asset which is 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 has plans to set up a customer-facing help center in the future. They plan to have several thousand members in the next couple of 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 we set the external org-wide default on cases to private. That means every 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 each other’s cases.

Let’s follow along as Maria makes this magic happen.

  1. From Setup, enter Digital Experiences in the Quick Find box, then select Settings.
  2. In the Sharing Sets related list, click New.
    • Label: Share Customer Cases
    • Sharing Set Name: [autopopulates]
  1. Select Customer Community User profile (this is the profile you share cases with).
  2. Select Case. The Available Objects list excludes:
    • Objects with an org-wide sharing setting of Public Read/Write
    • Custom objects that don’t have an account or contact lookup field
  1. In the Configure Access section, click Set Up next to Case to configure access for the selected profiles.
  2. Grant access based on an account lookup:
    • Select Account from the User dropdown menu.
    • Select Account from the Target Case dropdown menu field to determine lookup on the target object.
  1. Select Read Only for access.
  2. Click Update.
  3. Click Save.

Now, anytime you add customer users to the account, they automagically have access to all other customer cases within the same account.

Let’s create a customer user in our org. (We’re asking you to take this extra step so we can check to make sure you’ve done the access mapping correctly.)

  1. From the App Launcher, select Accounts.
  2. Select the All Accounts list view.
  3. Click Burlington Textiles Corp of America.
  4. Click Jack Rogers from the contact related list.
  5. Click Dropdown menu and select Enable Customer User.
  6. 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.

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. 

  1. From the App Launcher, select Contacts.
  2. Select Jack Rogers.
  3. From the dropdown menu, select Log in to Experience as User.

In the portal, click on 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.  

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈