Data security and access are not just important; they are crucial aspects of Salesforce administration. When granting access to data, it is vital to ensure that only the right people can see important information in your organization. This is where Sharing Rules come into play. They are a powerful tool that empowers you, as a Salesforce administrator, to take control and manage data access effectively.
Anthony is the Sales Manager for his company. He manages two teams—one in the U.S. and one in Spain. As the Sales Manager, he can access the two teams' records because of the functionalities of Role Hierarchy in Salesforce. However, what happens when the team in Spain needs to access the records of the U.S. team? Well, there's just one easy answer - Sharing Rules!
With Sharing Rules, you can grant access to your records to users in roles, territories and public groups, even outside the Organization-Wide Default (O.W.D). Sharing rules allow an administrator to share records with users who do not have access to the record. There are three main components in Sharing Rules in Salesforce - records that need to be shared, who they will be shared with, and the level of access to be granted upon sharing. Let’s get into more detail!
Still don’t understand? No worries—we will look into this in detail soon. Read on!
In Salesforce, there are two major types of Sharing Rules:
Owner-Based Sharing Rule is a simple way to share records from one user or group of users to another user or group. Remember our scenario at the beginning of this article? Imagine a record owner in the U.S. who wants to share a record with a member of the team in Spain. All they need to do is use the owner-based sharing rule to share the records.
Criteria-based sharing rules are as simple as they sound—sharing is based on meeting certain criteria. To create the criteria, you need three elements:
Let’s go back to our scenario - A team member in the U.S. wants to share their records with their counterpart in Spain, but only if a client has been contacted. In other words, record xxx should only be shared if the “Client Contacted” field is set to “Yes.” Using this example:
Next, select the users you want to share with and their level of access, and you're done!
Creating a Sharing Rule in Salesforce is a straightforward process that can make data access easier.