Skip to main content
TrailblazerDX, the ultimate AI learning event is heading back to San Francisco March 6-7, 2024. Register Now and save 35% with code T24DEYE424.

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.

  • list-style-type: inherit;
  • From Setup, enter Digital Experiences in the Quick Find box, then select Settings.
  • In the Sharing Sets related list, click New.
    1. list-style-type: inherit;
    2. list-style-type: inherit;
    3. Label: Share Customer Cases
    4. Sharing Set Name: [autopopulates]
  • list-style-type: inherit;
  • Select Customer Community User profile (this is the profile you share cases with).
  • 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
  • list-style-type: inherit;
  • In the Configure Access section, click Set Up next to Case to configure access for the selected profiles.
  • Grant access based on an account lookup:
    1. list-style-type: inherit;
    2. list-style-type: inherit;
    3. Select Account from the User dropdown menu.
    4. Select Account from the Target Case dropdown menu field to determine lookup on the target object.
  • list-style-type: inherit;
  • Select Read Only for access.
  • Click Update.
  • 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.)

  • list-style-type: inherit;
  • From the App Launcher, select Accounts.
  • Select the All Accounts list view.
  • Click Burlington Textiles Corp of America.
  • Click Jack Rogers from the contact related list.
  • Click Dropdown menu and select Enable Customer User.
  • Change the following in the New User detail page.
    1. list-style-type: inherit;
    2. list-style-type: inherit;
    3. Email: [Enter your email address so you can get login information for your newly created users.]
    4. Username: [unique username in an email format]
    5. User License: Customer Community
    6. Profile: Customer Community User
    7. Select the Generate new password and notify user immediately checkbox.
    8. 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. 

  • list-style-type: inherit;
  • From the App Launcher, select Contacts.
  • Select Jack Rogers.
  • 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.  

Keep learning for
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities