Question about Roles and Sharing
I am playing around with a flow that is basically inserting into the share table of a custom object, but something occurred to me and I was wondering if anybody has any insight. I understand the general scheme behind Salesforce sharing, starting restrictive and then using the tools to open up the sharing. But I am curious; what happens if I have a sharing rule on something like the Case object that basically grants read/write to any Case record to a certain public group, BUT I also have a role hierarchy setup that doesnt allow a role to view or edit any cases of an Account they do not own. What happens if I have a user who is a member of the public group mentioned above AND they have a role wherein they cant read or edit Cases of an Account they do not own? Does the sharing rule override the settings for that role? Or does the Role override the sharing rule?