I have created a community. Cloned a Profile with license Customer Community. When i login into as an customer I see all the Accounts.

I want to change this. User should see only related account and contact.

Thanks in advance


Few things to check

  • Does your Visualforce page has controller without sharing and hence you are running page in admin mode?
  • Can you check the default external access under sharing setting for Accounts? It might be public read write.
  • Yes sharing setting for account is public read write. if do as "private" community user is not able to see other records. But I want cummunity user to edit account information if account owner is system admin. – Swapnil Kale Sep 23 '15 at 7:39
  • You need to share the accounts with community user instead of making it public read write. Try sharing rules or create a Visualforce page that checks the user and updates account without sharing. – Amr Ibrahim Sep 23 '15 at 8:07
  • Visualforce page is not possible. How can I do with sharing rules. Should org wide setting for account be private? What should be "Select which records to be shared" and "Select the users to share with"? – Swapnil Kale Sep 23 '15 at 9:14
  • As per your comment you want to share accounts owned by sys admin ... you can share it with community users by adding them to group or based on their role. If you try it, you will be able to figure it out. – Amr Ibrahim Sep 23 '15 at 12:19
  • Can you please elaborate how can this be done. For user system admin I have given COO role. Also created a public group with portal role. How will be the account sharing rule for account? How user will not see other accounts and see only his and will be able to edit account owned by system admin? – Swapnil Kale Sep 24 '15 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.