Newer Version Available
Try It Out: Define Sharing Rules
Since we just defined our Reviewers public group, let's use it to define our sharing rule for review records.
- From Setup, enter Sharing Settings in the Quick Find box, then select Sharing Settings.
Remember this page? We were last here when we defined our org-wide defaults.
- In the Manage sharing settings for drop-down list, choose Job Application.
Choosing an object in this drop-down list allows us to focus in on the org-wide defaults and sharing rules for a single object at a time rather than looking at all of them in a long page—a really useful thing if you've got a large organization with several custom objects.
If you had chosen Review instead of Job Application, you wouldn’t have the option of creating sharing rules, since you can’t create sharing rules for a detail record in a master-detail relationship. However, since you chose Job Application, a Sharing Rules related list appears. We'll use that to create the sharing rules that will apply to both the Job Application and the Review objects.
- In the Job Application Sharing Rules area, click New.
- In the Label text box, enter Review Records.
- Click the Rule Name text box to populate it automatically.
- For the rule type, make sure Based on record owner is selected.
- In the Job Application: owned by members of drop-down list, select Public Groups.
- Next to that drop-down list, choose All Internal Users.
Just as we talked about already, you can define a sharing rule only for a single public group, role, or role with all of its subordinates. By default, the platform includes a default public group that encompasses every user in your organization.
- In the Share with drop-down list, select Public Groups.
- Next to that drop-down list choose Reviewers.
- In the Access Level drop-down list, select Read/Write.
- Click Save.
- Click OK in the dialog box that says this operation could take significant time.
And that's it! We just created a rule that shares reviews written and owned by any member of the organization with all recruiters and hiring managers. Since reviewers and hiring managers all need the power to read and update reviews, we handled everyone with a single sharing rule and a public group.
In the sharing rule for the Employment Website object, we opted to use the existing Reviewers public group. Doing this saved us a few clicks without granting access to any users who shouldn't be looking at employment website records.
Beyond the Basics
Did you know you can use criteria-based sharing rules to open up record access to users?
Say you want to share records based on field values in records instead of record owners. You can set up sharing rules based on field value criteria and apply filter logic to open up specific record access to users.
To find out more, see “Criteria-Based Sharing Rules��� in the Salesforce Help.