I have a requirement to share a custom object records to customer community users. The opportunity object has Event Booking and contact roles as related list.

Eg: There is an opportunity called Test opp and it has 3 contact roles such as: Role1, Role2 and Role3. Out of this 3 contact roles, a particular contact is customer community enabled user. So when I insert a event booking record, this record should be shared to that contact role.

Only the event booking record related to that opportunity only need to be shared to the contact role when logged in as customer community user. I searched for this in google and found that apex sharing rule is not available for customer community user.

Is there any alternative solution? What can be the workaround for this?


If your sharing requirements cannot be met via customer community licence then you will need to move to customer community plus licenses.These have ability to share records via apex or sharing rule and ability to set up role hierarchy

  • @ Mohith srivastava.. But in several forums I found that "Customer Communities users do not have access to the full sharing model and therefore can't be added on a __Share record. The only way to share a record with a Customer Communities user is through Sharing Sets and Sharing Groups." – Sweta A Jun 17 '16 at 11:14
  • Ah right. I updated my ans and confirmed with SFDC product team that you need customer community plus license – Mohith Shrivastava Jun 17 '16 at 11:56
  • 1
    With Customer community plus license, can we write apex sharing for the Event booking object.? And will it work? – Sweta A Jun 17 '16 at 11:59
  • Yes it will work :) – Mohith Shrivastava Jun 17 '16 at 12:25

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.