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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

User is missing a prvAssignTerritory privilege (security roles)

(0) ShareShare
ReportReport
Posted on by

Hi Everyone

Can you please tell me what the following error log means,it says privilege assign to territory by territory does not have the assign privilege on the business management tab,what privilege is the user missing here

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Principal user (Id=01173ea9-b2c3-e311-9836-005056a16449, type=8) is missing prvAssignTerritory privilege (Id=d5b32fc2-2f74-486b-a2d5-7a2506d1e580)Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220960</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Principal user (Id=01173ea9-b2c3-e311-9836-005056a16449, type=8) is missing prvAssignTerritory privilege (Id=d5b32fc2-2f74-486b-a2d5-7a2506d1e580)</Message>
<Timestamp>2015-08-28T06:27:56.8593555Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[FinalUpdateUserOnOpportunityCount: FinalUpdateUserOnOpportunityCount.UpdateOpportunity]
[e8ee42b6-b84c-e511-a965-005056a16449: Update of opportunity count ]

</TraceText>
</OrganizationServiceFault>

I have a plugin that runs on update of the opportunity and saves the result in the corresponding initiating user.id to the user entity.this error throws up on the user save of opportunity,which role is this user missing in this case,thanks.

Regards.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    I thought I should make a mention of this as well other business units have no issue except for some of the people in this one business unit,this BU is using cases could this have any sort of impact on the plugin

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Guys

    This is fixed,it turns out that  it had nothing to do with assign territory but rather the user entity privilege,my plugin runs on update of the opportunity to update the relevant user entity count of how many times this has been modified,so i just needed to give user the read and write permissiom to the user entity on the business management tab.And it works like magic,I have also noticed that not all error logs display the appropriate place to fix sometimes you just have to find the solution in replicate the role and changing the role bit by bit doing some testing until you find the missing permission.

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
NeerajPawar Profile Picture

NeerajPawar 2

#2
jlattimer Profile Picture

jlattimer 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans