+ Start a Discussion
Ranu JainRanu Jain 

Insufficient privileges on creating junction object

 

Hi All,

 

I have two object - 1. Opportunity 2. Agreement(Custom object)

I created a junction  object between them whose primary master is Agreement.

 

User don't have modify all permission on opportunity objet. Only have read,create,edit access on profile level.

Sharing sharing of opportunity is set to private.

There is an opportunity whose owner is in upper hierarchy and created by also is in upper level hierarchy but user is able to to view and edit this opportunity. So we can assume that there should be some sharing rules by which user is able to view this opportunity.

 

 
User have all level of access on junction object.

 

User wants to create new junction record by taking two fields - 

Opportunity -  above describe opportunity

agreement -  created by himself

But getting Insufficient privilege exception error.

 

 

If I provide modify all permission on Opportunity to the user's profile  , everything works fine.

 

Please help

 

 

-- 
Thanks 

Ranu
BUSYB0YBUSYB0Y

The user probably does not have edit access to the opportunity he is trying to associate with the junction object. Ask the user to edit the opportunity in question and see if he/she is able to edit it without issues.

Ashish_SFDCAshish_SFDC

Hi Ranu, 

 

Here we have to isolate which object that user does not have permission to or if its a specific record of that Object. 

This can be easily found out by clicking on edit and saving the record individually on each of the three objects.

It might also be possible that the opportunity that is being edited now has special individual sharing to any of the group members due to which the access opened up. 

 

So, please isolate which object the user is not having permission to and further the record in question. 

 

Regards,

Ashish

 

 

Ranu JainRanu Jain

Hii,

 

User have edit access on Opportunity object. But sharing setting on Opportunity is private. Still User able to view adn edit the opportunity for which niether he is owner not he created. It might be possible its happening due to some sharing rules.

 

But user is not able to created a junction record for above mentioed Opportunity.

Ashish_SFDCAshish_SFDC

Hi Ranu, 

 

What is the Organization wide sharing permission for the Account and is the user having access to the Account?

 

Regards,

Ashish