I'm setting up a partner community for the first time. I need to make sure Partner users will have access only to accounts, leads, opportunities and cases which are are created by them or someone from the same partner. In other words I don't want partner users seeing information of other partners but users of same partner should see each other records. Internal users should of course see everything.
How can this be done?