We have a community user say "U1" which is having a internal contact say "C1" in salesforce and that contact is related to an Account say "A1".
So when user "U1" login into the community and go to contacts tab we have to show only the contacts related to account "A1". i.e The community user can only be able to see the Account contacts with which its internal contact is related to.
Best Answer
You need to create the
Sharing Set
on the Communities. If you go toSetup--> Customize --> Communities --> Communities Settings
, you will find the section calledSharing Sets
. Create a new sharing set with name and add the relevant profiles. Then add Account and Contacts to your available objects list. Then, below select object, you can find the section to configure access to these objects. Click on Setup besides Accounts first. Set the rule as shown below.Then click on Setup besides Contacts and set the rule as shown below.
Other related pics are as follows:
Hope this helps!