web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unable to set owner of contact via code due to permissions on child entity

(0) ShareShare
ReportReport
Posted on by 1,577

Hello,

I am running a custom/coded import job, part of which updates the contact owner.

For some records I am unable to set the owner because they have child records which are/need to be be owned by a different team (the child entity is confidential, whereas the parent contact is not).

Due to this confidentiality I cannot give the read permission (to read the child/custom entity) to the team to which I wish to assign contact ownership.

I have changed the contact > child entity relationship to Cascade None on "Reparent". I thought this would solve the issue but it has not. The error is

Error updating contact xxxxx Principal team (Id=xxxxxxxxx, type=9, teamType=0, privilegeCount=1012), is missing prvReadnew_customentity

Note, I am ONLY trying to set the owner of the parent contact, NOT the custom child entity.

I know I could use a workflow but I would prefer not to have to. Any ideas welcome. Thanks.

- Seamus

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Unable to set owner of contact via code due to permissions on child entity

    Hi,

    Can you also change Assign cascade mode to none and see if it works.

    docs.microsoft.com/.../entity-relationship-behavior

    Is there any harm in providing read access to child entity prvReadnew_customentity?

    Please mark my answer verified if i were helpful

  • Verified answer
    Mohsin Ali Profile Picture
    3,634 on at
    RE: Unable to set owner of contact via code due to permissions on child entity

    You need to change the type of behavior from Parental to referential. You can find at Customization > Entities > Contact > 1:N Relationships > Open relationship with child entity and update as below.

    pastedimage1598546403977v1.png

    Helpful? please mark my solution as verified

  • Seamus Profile Picture
    1,577 on at
    RE: Unable to set owner of contact via code due to permissions on child entity

    Thanks!

  • Seamus Profile Picture
    1,577 on at
    RE: Unable to set owner of contact via code due to permissions on child entity

    Thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 179

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 127 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans