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
rsfdcrsfdc 

Help with Sharing Rule / Debug why record is not shared

To hide leads from portal, I've created following sharing rule (see screenshot)
User-added image

However there is still one particular instance where Lead Created/Owned by User A is not visible to User B. Both User A and B have CRUD lead permission, and are salesforce users.
What could be other factors? I've recalculated the sharing rules. Also I've manually tested the records created by a lot of other users are shared with All Internal users.
James LoghryJames Loghry
Are these records owned by community users and not Customer Partner Portal users?  If they are community users, the "All Partner Users" group will not apply.  Instead, you'll want to take a look at perhaps creating a "Sharing Set" in the Setup->Communities->Settings page.  And if that doesn't work (it's pretty limited to what it can do), then your next bet is to add manual sharing for those records either through the UI or perhaps through Apex Sharing.