Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Query on 'OwnerPrincipal' in error message

Posted on by Microsoft Employee

Can anyone advise what this line of an error message means?

ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Local","GrantedRights = None"

Is this indicating that the user completing the action does not have the right access?  I'm not sure what the 'Principal' is in this case.

Categories:
  • Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Query on 'OwnerPrincipal' in error message

    You are wlc :)

    Regards

    Johnny

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on 'OwnerPrincipal' in error message

    Hi Johnny,

    The user has just come in, so I've been working with her and looking at this now.

    Your feedback is helpful - I see that the trace does indicate about the Solution, so I could enable this - thanks for pointing this out.

    I am surprised that this entity requires access, as we have not had this occur before for the workflows.

    Thanks again, I can take the next steps from here!

  • Verified answer
    Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Query on 'OwnerPrincipal' in error message

    Hi Tarjani,

    Thanks for the exception sharing. From your provided error logs. I notice the following exception:

    "EntityName":"solution","EntityOwnershipTypeMask":8,"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None"


    You could try my above mentioned suggestions:

    1) Select any one of the roles assigned to the Tester User

    2) Assign global privileges for 'Solution' in all rows(save & publish).

    3) Try to retrigger the workflow

    solu.PNG

    Thanks.

    Regards

    Johnny

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query on 'OwnerPrincipal' in error message

    Hi Johnny,

    Thanks for your response! I didn't see it till today, but still in good time!

    The error came up as a user was testing a workflow, and the workflow failed.  When looking at the Plugin Trace this line was in the message.  The full trace was long but I'll place it below.  

    I do agree that the error appears to be an access issue, but I can't see why the access issue would occur.  The workflow is to generate an invoice for a set process, and the tester has the profile of the team members that would need to trigger this.

    I'm not sure if this is still similar ot the issue that your customer had, but I'm open to any thoughts on this one  :)

    Plugin Trace:

    [ECWorkflows: ECWorkflows.CreateRInvoices]

    [ECWorkflows(1.0.0.0): ECWorkflows.CreateRInvoices]

    Inside CreateRInvoices workflow

    Inside CreateRInvoices workflow

    entity type is: account

    account id is:- 54900380-fc49-e911-a876-000d3ad27a05

    _childAccounts count:- 0

    _subsColl count:- 1

    exception occured: {"CallerPrincipal":{"PrincipalId":"2f47f99e-36b2-4747-9c4c-6e388ee06742","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"00000000-0000-0000-0000-000000000000","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"20c38e00-ac1c-4b11-b83b-4a5ca63c242f","ObjectTypeCode":7100,"ObjectBusinessUnitId":"9d85c250-59c1-4f16-91ce-37557b1393b3","OrganizationId":"9d85c250-59c1-4f16-91ce-37557b1393b3","EntityName":"solution","EntityOwnershipTypeMask":8,"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=5, privilegeCount=2618, accessMode=0; Principal Data: roleCount=2, privilegeCount=890, accessMode=0"]}

    Error Message:

    Unhandled exception:

    Exception type: Microsoft.Xrm.Sdk.InvalidPluginExecutionException

    Message: Error in Execute: {"CallerPrincipal":{"PrincipalId":"2f47f99e-36b2-4747-9c4c-6e388ee06742","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"00000000-0000-0000-0000-000000000000","Type":8,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"20c38e00-ac1c-4b11-b83b-4a5ca63c242f","ObjectTypeCode":7100,"ObjectBusinessUnitId":"9d85c250-59c1-4f16-91ce-37557b1393b3","OrganizationId":"9d85c250-59c1-4f16-91ce-37557b1393b3","EntityName":"solution","EntityOwnershipTypeMask":8,"RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Global","GrantedRights = ReadAccess","PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=5, privilegeCount=2618, accessMode=0; Principal Data: roleCount=2, privilegeCount=890, accessMode=0"]}

    -- End stack trace --

  • Suggested answer
    Johnny Gong Profile Picture
    Johnny Gong 6,482 on at
    RE: Query on 'OwnerPrincipal' in error message

    Hi Tarjani,

    This issue should be user missing privileges on some specific entity.

    For example, one of my customer met the following exception:

    You do not have enough privileges to access the Microsoft Dynamics 365 object or perform the requested operation:
    403 Response Error:
    {"error":{"code":"0x80048306","message":"{\"CallerPrincipal\":{\"PrincipalId\":\"5cb8b814-0022-4b56-86c8-5c7fcf017063\",\"Type\":8,\"IsUserPrincipal\":true,\"IsTeamPrincipal\":false,\"TypeName\":\"user\"},\"OwnerPrincipal\":{\"PrincipalId\":\"cb7a479c-eab0-e611-8111-480fcff44571\",\"Type\":8,\"IsUserPrincipal\":true,\"IsTeamPrincipal\":false,\"TypeName\":\"user\"},\"ObjectId\":\"2dbe6977-8551-e911-a989-000d3af3dfc5\",\"ObjectTypeCode\":4200,\"ObjectBusinessUnitId\":\"c10d0f8e-1880-e611-810d-480fcfeae041\",\"OrganizationId\":\"b9e61f91-dee7-4df4-9c51-960e3bf96d5e\",\"EntityName\":\"activitypointer\",\"EntityOwnershipTypeMask\":1,\"RightsToCheck\":\"ReadAccess\",\"RoleAccessRights\":\"None\",\"PoaAccessRights\":\"None\",\"HsmAccessRights\":\"None\",\"Messages\":[\"PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False\",\"EntityUserGroupRights = None\",\"MinimumDepthRequired = Local\",\"GrantedRights = ReadAccess\",\"PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False\",\"EntityUserGroupRights = None\",\"MinimumDepthRequired = Local\",\"GrantedRights = ReadAccess\",\"PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False\",\"EntityUserGroupRights = None\",\"MinimumDepthRequired = Global\",\"GrantedRights = None\",\"SecLib::AccessCheckEx2 failed. 

    From the
    "EntityName\":\"activitypointer\",\"EntityOwnershipTypeMask\":1,\"RightsToCheck\":\"ReadAccess\",\"RoleAccessRights\":\"None\",\"PoaAccessRights\":\"None\",\"HsmAccessRights\":\"None\",\"Messages\":
    We consider he may miss privileges on ActivityPointer entity.

    So we suggested Mitigation

    1) Select any one of the roles assigned to User

    2) Assign global privileges for Activity Pointer in all rows.

    3) Try to reopen opportunity from mentioned User

    So I wonder if you could share more exceptions about this error and more operation background before this. 

    In addition, there're still some other similar tickets recently which could be for your reference: 

    [View:https://community.dynamics.com/365/f/761/t/312353:750:50]
    Hope the above info would help.
    Regards
    Johnny

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans