While creating Case Records, few plugins will be triggered.
In our scenario, when I create a case record, custom plugin will assign the record to particular user based on the CaseSubType Field.
The logged in user is able to create case for all CaseSubTypes except few. When particular CaseSubType is selected. I am getting the below error.
Exception Message: Principal with id 19780aab-6237-e911-90f0-00155d5de174 does not have ReadAccess right(s) for record with id 9bb72a6b-fffa-4fd2-b318-9356ece26106 of entity incident.
ErrorCode: -2147187962
HexErrorCode: 0x80048306
ErrorDetails:
0: incident
1: 9bb72a6b-fffa-4fd2-b318-9356ece26106
2: 112
3: ReadAccess
4: 19780aab-6237-e911-90f0-00155d5de174
5: 8
ApiExceptionSourceKey: Step/Microsoft.Crm.Extensibility.ImageRetrievalStep
ApiStepKey: 84b9d1cb-3e30-11db-b951-000cf1fe02ff
ApiDepthKey: 1
ApiActivityIdKey: 6c9147eb-d2fc-4c6b-8989-3ddde5992050
ApiPluginSolutionNameKey: System
ApiStepSolutionNameKey: System
ApiExceptionCategory: ClientError
ApiExceptionMessageName: unManagedIdsAccessDenied
ApiExceptionHttpStatusCode: 403
HelpLink: go.microsoft.com/.../
Activity Id: 6b9c7040-3e03-4f80-be78-807d6cf15993
Using this error I couldn't find which plugin is causing the issue. And also I couldn't see any traces on Plugin-Tracelog.