Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Access Denied when Saving Dashboard

Posted on by 685

Hi,

I have a user that has created a dashboard and all the components they are attempting to add to the dashboard. It saved fine. However, when they try to make a simple change and save the dashboard again it says access denied with the log file below. I have checked all security roles and cannot see what the error relates to. Has anyone seen this before?

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a42702ee-c530-e711-80fa-c4346bad02e8, OwnerId: 190ce926-279c-e611-80e7-c4346bad1060,  OwnerIdType: 8 and CallingUser: 190ce926-279c-e611-80e7-c4346bad1060. ObjectTypeCode: 1031, objectBusinessUnitId: b67dd628-b847-e611-80db-c4346bad508c, AccessRights: WriteAccess Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ErrorCode>-2147187962</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a42702ee-c530-e711-80fa-c4346bad02e8, OwnerId: 190ce926-279c-e611-80e7-c4346bad1060,  OwnerIdType: 8 and CallingUser: 190ce926-279c-e611-80e7-c4346bad1060. ObjectTypeCode: 1031, objectBusinessUnitId: b67dd628-b847-e611-80db-c4346bad508c, AccessRights: WriteAccess </Message>
  <Timestamp>2017-05-04T12:46:33.4704908Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>


Best wishes,

Richard

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a42702ee-c530-e711-80fa-c4346bad02e8, OwnerId: 190ce926-279c-e611-80e7-c4346bad1060,  OwnerIdType: 8 and CallingUser: 190ce926-279c-e611-80e7-c4346bad1060. ObjectTypeCode: 1031, objectBusinessUnitId: b67dd628-b847-e611-80db-c4346bad508c, AccessRights: WriteAccess Detail:
  <ErrorCode>-2147187962</ErrorCode>
  <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: a42702ee-c530-e711-80fa-c4346bad02e8, OwnerId: 190ce926-279c-e611-80e7-c4346bad1060,  OwnerIdType: 8 and CallingUser: 190ce926-279c-e611-80e7-c4346bad1060. ObjectTypeCode: 1031, objectBusinessUnitId: b67dd628-b847-e611-80db-c4346bad508c, AccessRights: WriteAccess </Message>
  <Timestamp>2017-05-04T12:46:33.4704908Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

*This post is locked for comments

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Access Denied when Saving Dashboard

    In that particular role, Check privileges for user dashboard and user chart.

    Or use system admin role.

  • Vin.k.S Profile Picture
    Vin.k.S 95 on at
    RE: Access Denied when Saving Dashboard

    Yes I Do, and this is how to quickly resolve it

    Just see what is ObjectTypeCode: 1031 stands for, as it comes out to be a UserForm. Remember a User dashboard is of type UserForm (Ref: docs.microsoft.com/.../userform )

    a42702ee-c530-e711-80fa-c4346bad02e8 is your Dashboard

    190ce926-279c-e611-80e7-c4346bad1060, is the owner & calling user

    and this is the missing AccessRights: WriteAccess

    SecLib::AccessCheckEx  is the Security Priviledges missing

    If you have db access you can also verify the same with:

    select * from UserForm Where UserFormId = 'a42702ee-c530-e711-80fa-c4346bad02e8'

    select * from Owner where OwnerId = '190ce926-279c-e611-80e7-c4346bad1060'

    What else you need ?

  • Suggested answer
    MNarmeen Profile Picture
    MNarmeen 1,846 on at
    RE: Access Denied when Saving Dashboard

    You don't have write permissions.

    Please check the permissions in settings.

  • Suggested answer
    sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: Access Denied when Saving Dashboard

    www.powerobjects.com/.../access-denied-identify-fix-security-role-issue

    Hope this link helps you.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Access Denied when Saving Dashboard

    Hi crmrsw,

    did you give them permissions to write to the User Dashboards?

     When looking at the security role, go to "Core Records" tab - there is "User Dashboard" entity there. They should be given"write" permission for the "user"-owned dashboards through at least one of the security roles

  • crmrsw15 Profile Picture
    crmrsw15 685 on at
    RE: Access Denied when Saving Dashboard

    Hmm there is nothing on the dashboard that writes to the user entity though. I have actually seen this with 2 separate users now. Has anyone ever experienced this issue before?

  • Suggested answer
    J Matlon Profile Picture
    J Matlon 1,465 on at
    RE: Access Denied when Saving Dashboard

    That error says your user is lacking the permissions to write to the User entity.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans