Today's Offer - Salesforce Certification Training - Enroll at Flat 10% Off.

- Salesforce Blogs -

What Are Sharing Rules? How To Create Sharing Rules In Salesforce?

what are the sharing rules in Salesforce?

Well, this is a common question asked by users how to get the horizontal access to the records for users. For this purpose, you can take advantage of the one popular security component in Salesforce named as the Sharing Rules. Here, we will answer the popular questions frequently asked by users like why you need the sharing rules, how to choose the right type of sharing rules, how to creating or define the sharing rules in Salesforce?

Topics to be covered in the Blog

  1. How to create sharing rules in Salesforce?
  2. How to Define Sharing rules in Salesforce?
  3. What is the need of sharing rules in Salesforce?
  4. How to choose the right sharing rules in Salesforce?

How To Create Sharing Rules In Salesforce?

Before you start creating sharing rules in Salesforce, this is important to understand the concept of the public group first. This group is a collection of subgroups, users, individual roles, their subordinates sharing the function in common.

  • Go to the Setup and access the Quick Find box to search the public groups.Create Sharing Rules in Salesforce
  • Now click on the NEW option. It will open the membership page for reviewers that are new to the group.Create Sharing Rules in Salesforce
  • From the New public group, you can choose other groups, users, roles, subordinates etc.
  • Assign the label reviewers to the rule.
  • The name of the group will populate automatically as soon as you click over it. The name will be uniquely assigned by API packages themselves.
  • Now from the drop-down Menu, choose Rules.Create Sharing Rules in Salesforce
  • From the member list, you can select the different roles and click on Add in the end.
  • Now go back to the drop-down list and choose roles and subordinates together.Create Sharing Rules in Salesforce
  • From the available member list, click on the recruiting manager, then click on Add option.
  • Once you have created a public group, it can be further used to define the sharing rules.

With the public group, creating sharing rules would be much easier and they can be understood quickly later. This is taken as the best practice for large organizations where data need to maintain for the long time span. It is strongly recommended setting up a public group for sharing rules having more than one group, users, roles etc. salesforce Curriculum When you will go deep, you will understand that there are two popular objects that need the public group for sharing rules. These objects are job application and the Review object. The best part is that both objects can be covered under a single group on the detailed side of the master-slave relationship.

Read: What Is Salesforce Chatter And Its Benefits?

In brief, review object will inherit the settings that are applied to the job application object. As you know that both recruiters and hiring managers need access to job applications and reviews, so we need to define a public group here that is named as reviewers include both hiring managers and recruiters too.

How To Define Sharing Rules In Salesforce?

Here, you should use the same group created earlier to define a sharing rule for review records. This is easy to define sharing rules for the public group, multiple roles, and subordinates etc.

  • By default, there is one public group that accommodate all users in your organization.
  • From the Setup, go to the Quick Find Box and search the Sharing Settings Option.Create Sharing Rules in Salesforce
  • Now from the drop-down Menu, choose Job Application.Create Sharing Rules in Salesforce
  • Now choose an object that could allow you to focus in organization-wide defaults as shown in the previous screenshot. Now check the sharing rule for an independent object only one at a time instead of looking at all of them together in a long page. You should a little more careful when you are working with a large enterprise using a plenty of custom objects. Now we can use this sharing rule to create permissions that are applicable to both job application and review objects.
  • Now go to the job application area and click on the NEW option to give a label to the sharing rule.
  • The name for the sharing rule will populate automatically as soon as you click over it.
  • To share the records, now first select the public group then you can choose the entire organization. Now make a list of users with whom you would like to share the details.
  • Select the level of access and READ/Write permissions. In the end, click on the Save option to store all sharing settings.

Congratulation, we have just created and define sharing rules in Salesforce successfully owned by your recruiters or hiring manager in a large organization. This is the best security components where the level of access is decided by the public group owner itself. salesforce quiz

Read: What are the Ways to Import Data into Salesforce?

Why You Need Sharing Rules In Salesforce?

This is clear from the discussion made till now that sharing rules are security components and they are necessary to define the level of access to data whenever the role hierarchy grants vertical access to the data. Still, most of the times Companies have to face a situation where they have to restrict information access based on roles. Create Sharing Rules in Salesforce Take an example, where marketing managers are interested in taking an idea of all closed-win opportunities but this information is available to sales managers only by default. So, you can extend this access to marketing specialists with the help of sharing rules in Salesforce.

How To Choose The Right Type Of Sharing Rules In Salesforce?

The basic objective of sharing rules in Salesforce is to open up the horizontal access to data. We cannot restrict access to sharing rules. So, if you wanted to maintain restricted access then you need to add another security layer in this case. Create Sharing Rules in Salesforce

In Salesforce, there are two types of sharing rules, first record ownership-based sharing rules and the second category is criteria-based sharing rules. Based on the Company requirements, the administrator will decide which type of sharing rule suits your needs the most. free salesforce demo Endnote

Read: Salesforce VisualForce Interview Questions & Answers for Fresher, Experienced

Deciding on the data set that can be seen by each user or a particular group within an organization is the key decision that affects the overall security of your organization. This is the reason we need to create a robust security model by using sharing rules in Salesforce that could allow the horizontal access to data whenever needed. It will restrict data from stolen and offer a limited access so that information is not misused by other users. This is the reason why Companies should know how to best use the security components in Salesforce like Sharing rules and more.

Salesforce Tutorial Overview

    Janbask Training

    A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.

Trending Courses


  • AWS & Fundamentals of Linux
  • Amazon Simple Storage Service
  • Elastic Compute Cloud
  • Databases Overview & Amazon Route 53

Upcoming Class

9 days 02 Feb 2020


  • Intro to DevOps
  • GIT and Maven
  • Jenkins & Ansible
  • Docker and Cloud Computing

Upcoming Class

3 days 27 Jan 2020

Data Science

  • Data Science Introduction
  • Hadoop and Spark Overview
  • Python & Intro to R Programming
  • Machine Learning

Upcoming Class

0 day 24 Jan 2020


  • Architecture, HDFS & MapReduce
  • Unix Shell & Apache Pig Installation
  • HIVE Installation & User-Defined Functions
  • SQOOP & Hbase Installation

Upcoming Class

1 day 25 Jan 2020


  • Salesforce Configuration Introduction
  • Security & Automation Process
  • Sales & Service Cloud
  • Apex Programming, SOQL & SOSL

Upcoming Class

4 days 28 Jan 2020


  • Introduction and Software Testing
  • Software Test Life Cycle
  • Automation Testing and API Testing
  • Selenium framework development using Testing

Upcoming Class

3 days 27 Jan 2020

Business Analyst

  • BA & Stakeholders Overview
  • BPMN, Requirement Elicitation
  • BA Tools & Design Documents
  • Enterprise Analysis, Agile & Scrum

Upcoming Class

3 days 27 Jan 2020

SQL Server

  • Introduction & Database Query
  • Programming, Indexes & System Functions
  • SSIS Package Development Procedures
  • SSRS Report Design

Upcoming Class

7 days 31 Jan 2020


Search Posts


Receive Latest Materials and Offers on Salesforce Course