function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aditi Singh 41Aditi Singh 41 

Insufficient access for contentVersion object for community site user.

Below are steps for my use case:
  • I am updating a field on a custom object(say CMyobj).
  • There is record triggered flow on CMyobj which calls an apex method and inside this a document is created.
This flow is working fine with admin user. But with community site user it shows below mentioned error:
Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: [NetworkId]

*I don't have option to give contentVersion object permission to community profile.

 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Aditi,

Can you check the CMyobj object permissions for that community user.
refer the below link have solution for similar kind of issue.
https://salesforce.stackexchange.com/questions/106212/insufficient-access-on-cross-reference-entity-insufficient-access-rights-on-cro

THanks!!
Aditi Singh 41Aditi Singh 41
That's what I mentioned I don't have option of contentVersion while giving permissions