Start tracking your progress
Trailhead Home
Trailhead Home

Use Sharing Rules for External Users

Sharing Rules for External Users

What’s next in our sharing adventure? Sharing rules, of course.

Sharing rules work the same way for external users as they do for internal users, and in this step, we see how to use them for our partner users.

Let’s take a quick look at what sharing rules do in this video.

Sharing rules grant additional access to records on an object-by-object basis, regardless of where users fall on the role hierarchy.

You can create sharing rules based on owner or based on criteria.

Owner-based sharing rules let you share records between groups of users, while criteria-based sharing rules apply when certain criteria are met.

Salesforce creates and maintains the following community-specific groups.

  • Portal roles
  • Portal role and subordinates
  • Roles, Internal and Portal Subordinates
  • All Customer Portal Users and All Partner Users public groups
  • And if you have channel programs and levels set up, you have Channel Programs and Levels Groups

You can also set up your own public groups for sharing purposes.

Let’s take a look at how Ursa Major uses sharing rules to open record visibility among partner users.

Sharing Rule Using an Account Role

Ursa Major’s partner users fall into two categories: distributors and resellers. Sometimes, the partner users belonging to different accounts need to see each other’s records. For example, partner managers in the Express Logistics and Transport account need read and write access to opportunities owned by all partner users in Edge Communications.

Let’s follow along as Maria, Ursa Major’s admin, sets up a sharing rule that uses the account roles we set up in the previous step.
  1. From Setup, enter Sharing in the Quick Find box, then select Sharing Settings.
  2. Click New under Opportunity Sharing Rules, and enter the following.
    1. Label: Share Edge Opportunities
    2. Rule Name: [autopopulates]
    3. Rule Type: Based on record owner
    4. Select which records to be shared: Portal Roles and Subordinates: Edge Communications Partner Manager
    5. Select the users to share with: Portal Roles: Express Logistics and Transport Partner Manager
    6. Select the level of access for the users: Read/Write
  3. Click Save.

See what we did there? We gave read and write access to all opportunities owned by Edge Communications partner managers and subordinates (that is, partner users) with partner managers at Express Logistics and Transport.

Using sharing rules, you can also give access to records owned by internal Salesforce users to external users who have Customer Community Plus and Partner Community licenses, and vice versa.

Now let’s take a look at how we can share records with a public group comprising partner users.

Criteria-Based Sharing Rule Using a Public Group

Let’s make things a bit more interesting (read: complicated and fun!). Ursa Major wants partner managers to be aware of any high-priority energy accounts. The company also wants the director of channel sales to be aware of these accounts.

How can Maria meet this need? First, she has to create a public group that includes managers in partner accounts, as well as the director of channel sales. Note that she’s creating a public group that includes both internal and external roles.

  1. From Setup, enter Public Groups in the Quick Find box, then select Public Groups
  2. Click New and enter the following.
    1. Label: Partner Managers and Channel Director
    2. Group Name: [autopopulates]
    3. Search Roles for Channel Sales and move Role: Director, Channel Sales to Selected Members
    4. Search Portal Roles for Manager and move Portal Role: Edge Communications Partner Manager and Portal Role: Express Logistics and Transport Partner Manager to Selected Members
  3. Click Save.

Now Maria has to create a sharing rule that meets the criteria she was given.

  1. From Setup, enter Sharing in the Quick Find box, then select Sharing Settings.
  2. Click New under Account Sharing Rules, and enter the following.
    1. Label: High Priority Energy Accounts
    2. Rule Name: [autopopulates]
    3. Rule Type: Based on criteria
    4. Select which records to be shared: Criteria
    5. Field: Industry equals Energy AND Field: Customer Priority equals High
    6. Select the users to share with: Public Groups: Partner Managers and Channel Director
    7. Select the level of access for the users:
    8. Default Account and Contract Access: Read Only
    9. Opportunity Access: Private
    10. Case Access: Private
  3. Click Save.

And there you have it. You’ve opened up access to previously inaccessible accounts for a whole groups of users. Onward!

retargeting