I have a Permission set to assign CRUD permission to a certain custom Object say CI__c. This is a Junction object of two other custom object C__c and I__c. While creating a new record in that junction object with one C1 and I1 record, on which the user has access, is getting

  CI__c(Jn) ->  C__c(Master-Detail), I__c(Master-Detail) 

insufficient privilege error.

Please suggest.

  • 1
    Sure that you have the following permissions? 1: Create CRUD permission on Cl__c 2.Read CRUD Permission on C__c and l__c 3. Record visibility to the records of C__c and l__c that you are using as parents for the junction object record. Try navigating to the detail pages of those individual records.
    – Prajith
    Feb 26 '16 at 6:32
  • 1
    Also is any trigger running for Cl__c from a class on an explicit with sharing context?
    – Prajith
    Feb 26 '16 at 6:33
  • yes all this are in place
    – user59759
    Feb 26 '16 at 6:48
  • 1
    On the master detail field setup page, there exists an option to Select the minimum access level required on the Master record to create, edit, or delete related Detail records. Please check the value in their for the MD fields on the junction object
    – Prajith
    Feb 26 '16 at 7:02
  • 1
    If it says Read/Write in there and you only have read access on the parent -> then it would be an issue
    – Prajith
    Feb 26 '16 at 7:04

You might have demanded for permissions more than what is required for CRUD on junction object CI__c.


CI__c(Jn) ->  C__c(Master-Detail), I__c(Master-Detail) 

Check the field definitions of the Master Detail:

enter image description here

  • If you have asked for Read/Write then you should have CRUD permission on C__c and I__c as well
  • Change it two Read Only and try again, it should work

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.