I have a very strange problem in Dynamics 365 version 9 and I am hoping someone has encountered it and knows the fix.
I have a user with a problem, User A, that is a member of the exact same security roles as users that do not have the problem (User B, C, and D), so I am at a total loss as to root cause, and cannot fix it.
The problem is this:
When User A clicks on options, then clicks on the synchronization tab, then clicks on "filters" (circled below in red), they get an access denied error message.
The download error log contains the following:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: f8958ad4-b1ea-4972-8544-b685167f4f6e, OwnerId: d2516c90-6f04-e811-a962-000d3a1a7089, OwnerIdType: 8 and CallingUser: d2516c90-6f04-e811-a962-000d3a1a7089. ObjectTypeCode: 4230, objectBusinessUnitId: 054d7187-34e2-e711-a95b-000d3a180af8, AccessRights: 9 Detail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>20525bae-0b94-475e-9493-91d9c653113a</ActivityId> <ErrorCode>-2147187962</ErrorCode> <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic"> <KeyValuePairOfstringanyType> <d2p1:key>ApiExceptionSourceKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.ObjectModel.UserQueryService</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiOriginalExceptionKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmSecurityException: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: f8958ad4-b1ea-4972-8544-b685167f4f6e, OwnerId: d2516c90-6f04-e811-a962-000d3a1a7089, OwnerIdType: 8 and CallingUser: d2516c90-6f04-e811-a962-000d3a1a7089. ObjectTypeCode: 4230, objectBusinessUnitId: 054d7187-34e2-e711-a95b-000d3a180af8, AccessRights: 9 ---> Microsoft.Crm.CrmSecurityException: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: f8958ad4-b1ea-4972-8544-b685167f4f6e, OwnerId: d2516c90-6f04-e811-a962-000d3a1a7089, OwnerIdType: 8 and CallingUser: d2516c90-6f04-e811-a962-000d3a1a7089. ObjectTypeCode: 4230, objectBusinessUnitId: 054d7187-34e2-e711-a95b-000d3a180af8, AccessRights: 9 at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx2(ExecutionContext context, SecurityPrincipal principal, SecurityPrincipal ownerPrincipal, Guid objectId, Int32 objectTypeCode, Guid objectBusinessUnitId, AccessRights rights) at Microsoft.Crm.BusinessEntities.SecurityLibrary.AccessCheckEx(ExecutionContext context, SecurityAttributes attributes, AccessRights rights) at Microsoft.Crm.BusinessEntities.SecurityExtension.PreRetrievePrincipalAccessHandler(ExtensionEventArgs e, Object sender) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreRetrievePrincipalAccessEventHandler.Invoke(Object sender, ExtensionEventArgs e) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrievePrincipalAccess(BusinessEntityMoniker moniker, SecurityPrincipal principal, ExecutionContext context) --- End of inner exception stack trace --- at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass1_1.<Execute>b__0()</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiStepKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">97ccbb1b-ea3e-db11-86a7-000a3a5473e8</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiDepthKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiActivityIdKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">20525bae-0b94-475e-9493-91d9c653113a</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiPluginSolutionNameKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>ApiStepSolutionNameKey</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: f8958ad4-b1ea-4972-8544-b685167f4f6e, OwnerId: d2516c90-6f04-e811-a962-000d3a1a7089, OwnerIdType: 8 and CallingUser: d2516c90-6f04-e811-a962-000d3a1a7089. ObjectTypeCode: 4230, objectBusinessUnitId: 054d7187-34e2-e711-a95b-000d3a180af8, AccessRights: 9 </Message> <Timestamp>2018-04-27T14:17:36.5409838Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText i:nil="true" /> </OrganizationServiceFault>
The user has the Manage User Synchronization Filters Privilege on Core Records enabled and is a member of the exact same security roles as users who do not have the problem.
Any advice or recommendations on how to identify and resolve this issue would be greatly appreciated.