Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

RetrievePrivilegeForUser failed - no roles are assigned to user

(0) ShareShare
ReportReport
Posted on by 80

Hello Experts,

We are getting an error while trying to save the record with System administrator access.  It is online 365. We recently upgraded from 8.1 to 8.2.

,errorcrm.jpg

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::RetrievePrivilegeForUser failed - no roles are assigned to user. Returned hr = -2147209463, User: 24e1b26e-eac6-e511-80e3-a45d36fcffdcDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>ea07b196-2ebe-4c06-8bcf-c600d9ff8d99</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>SecLib::RetrievePrivilegeForUser failed - no roles are assigned to user. Returned hr = -2147209463, User: 24e1b26e-eac6-e511-80e3-a45d36fcffdc</Message>
<Timestamp>2017-07-06T16:33:21.5283043Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

Can someone help me with this issue?

Thanks in Advance

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: RetrievePrivilegeForUser failed - no roles are assigned to user

    Were you trying to modify an existing record?

    Please check who the owner of the record is that you are trying to modify, and make sure that user has a security role assigned to it.

  • Suggested answer
    SergiiChvyr Profile Picture
    SergiiChvyr on at
    RE: RetrievePrivilegeForUser failed - no roles are assigned to user

    Check workflows and plugins that you have for the entity you are trying to save. Probably some of them are running in a context of user  who do not have any roles. Also check who is the user with id 24e1b26e-eac6-e511-80e3-a45d36fcffdc

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: RetrievePrivilegeForUser failed - no roles are assigned to user

    Hello,

    I have exactly the same issue in an Online version 8.2.

    Did you find a way to fix your problem ?

    Thanks a lot,

    Nicolas

  • AXCRM1 Profile Picture
    AXCRM1 80 on at
    RE: RetrievePrivilegeForUser failed - no roles are assigned to user

    We have online CRM.

  • Suggested answer
    RE: RetrievePrivilegeForUser failed - no roles are assigned to user

    Refer this:

    community.dynamics.com/.../retrieveprivilegeforuser-failed-no-roles-are-assigned-to-user

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans