We have setup our organization with Org-Wide Sharing settings as Private and then use Managed Apex sharing to share records with users.

We now have a need to expose these records to Customer Community Login Users and enable them to create a certain records.

How can we achieve this?


You won't be able to do it using Apex Sharing which suggests to me that you'll want to start from scratch and rethink your original sharing model. You can enable the External Sharing model, but I suspect that won't solve the issues you'll be faced with.

I recommend Getting Started with Communities and Security Implementation Guide as resources.

  • Can't we use CustomObject__Share object record to share record with specific user? just a thought! – Ashwani Aug 22 '15 at 18:12

We resolved this issue by creating custom community pages that exposed the relevant records by setting the without sharing keyword on the page controllers.


You have to enable External Sharing option. Also through the Sharing settings you can enable access to Roles under Community Portal.

  • Only Partner Portal Users have Roles, Customer Portal Users do not. They only have a Profile. – crmprogdev Aug 23 '15 at 13:35

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.