function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
K RoyK Roy 

If a sharing rule is written on an object, does that mean, only that particular "Roles and Sub Ordinates" mentioned in the rule can see the record ?

Hello Everyone,

I have an object, which has got a sharing rule written on it. It is being shared with a specific role. Does that mean, only the users in that specific role will see that record? and no one else?
 
Please help me understand this scenario.

Thanks in advance
ShirishaShirisha (Salesforce Developers) 
Hi Roy,

Greetings!

Yes,the role users can only access the record based on the criteria that you have setup in the sharing rule.But,if your org wide default settings are public Read/Write then the sharing rules can be ignored.

Reference:https://help.salesforce.com/articleView?id=security_about_sharing_rules.htm&type=5

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
vishal-negandhivishal-negandhi

Hello Roy, 

It also depends on what is the "Grant Access Using Hierarchies" set to on that specific object, it's TRUE for all standard objects but can be set to FALSE for custom objects. 

If this is set to true, then based on your role hierarchy, all users who are above the users in "Role and subordinates" will have access to this data. 

 

Hope this clarifies. 

 

Best,

Vishal