Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Owner of a record while creating

$
0
0

Hi All,

I have 2 plugin while case is created:-

a) Prevalidation - In this plugin I am setting the owner of the case.

b) Preoperation - In this plugin, we are setting some fields.

Both the above plugins are running with System User.

I could see that when preoperation plugin completes it plugin goes for stage 30, it gives me below error.

You don't have permission to create this row. Server Response: Cases failed: Principal with id 29251e33-3f9d-eb11-b1ac-000d3a99bed5 does not have ReadAccess right(s) for record with id 96d09db9-8dfb-ed11-8847-000d3a1352b1 of entity incident. Details: {"CallerPrincipal":{"PrincipalId":"29251e33-3f9d-eb11-b1ac-000d3a99bed5","Type":8,"IsUserPrincipal":true},"OwnerPrincipal":{"PrincipalId":"2d08e805-1eba-eb11-8236-0022481ef6e9","Type":9,"IsUserPrincipal":false},"ObjectId":"96d09db9-8dfb-ed11-8847-000d3a1352b1","ObjectTypeCode":112,"EntityName":"incident","ObjectBusinessUnitId":"1dd338fc-cd11-eb11-a813-002248216416","RightsToCheck":"ReadAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","GrantedAccessRights":"None","Messages":["BasicMinimumPrivilegeDepthRequired = None","EntityUserGroupRights = None","GlobalMinimumPrivilegeDepthRequiredRights = ReadAccess","SecLib::AccessCheckEx2 failed. Owner Data: teamType=0, privilegeCount=1260; Principal Data: roleCount=5, privilegeCount=706, accessMode=0"],"EntityOwnershipTypeMask":1,"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Teams":null,"Roles":null},"ReadOnlyState":"UserAndOrgFullAccess","IsHsmEnabled":false,"HsmInfo":null,"AccessOrigin":null}

Why plugin is trying to create the case with the current user even plugins Run in user's context is set as System?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images