[SalesForce] Sharing rules not working on Partner Community Users

I have partner community enabled. I want to display Account, Contact and Opportunity records to the Community users only if they fulfill particular criteria.

What I've already done is as follows :

Setting the OWD as private for Account, Contact and Opportunity objects.

Created Sharing Rules for Account, Contact and Opportunities.

enter image description here

The issue that I've been facing is :

There are multiple views on these objects. And all the records are coming up to the site users, instead of them not fulfilling the criteria of the sharing rule.

Best Answer

The Profile that you have the partners assigned to, does that have View All/Modify All for the concerned objects? Or does it maybe even have the system permission View All Data or Modify All Data?

A RowCause of Owner might indicate that the user has View/Modify All Data.

Instead of using a query to get the RowCause, use the Sharing button to determine the access to a record, this has sometimes a more clearer description (And sometimes not)

When having clicked on the Sharing button, if you do not see the concerned users directly, click on Expand List, find the user who you think has unexpected access, and click on Why in front of their name.

Related Topic