I have a problem with a user in my CRM.. Every time he tries to create a new company account he gets the following error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: d8888c86-790a-e311-bda9-005056b832ff, OwnerId: 9b91ae75-a709-e311-bda9-005056b832ff, OwnerIdType: 8 and CallingUser: 78d387b0-a509-e311-bda9-005056b832ff. ObjectTypeCode: 2, objectBusinessUnitId: 5831e394-18f5-e211-bda9-005056b832ff, AccessRights: WriteAccess Detail: <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts"> <ErrorCode>-2147187962</ErrorCode> <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" /> <Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: d8888c86-790a-e311-bda9-005056b832ff, OwnerId: 9b91ae75-a709-e311-bda9-005056b832ff, OwnerIdType: 8 and CallingUser: 78d387b0-a509-e311-bda9-005056b832ff. ObjectTypeCode: 2, objectBusinessUnitId: 5831e394-18f5-e211-bda9-005056b832ff, AccessRights: WriteAccess </Message> <Timestamp>2016-01-13T15:10:48.5558584Z</Timestamp> <InnerFault i:nil="true" /> <TraceText> [XXXXXXXXX.Plugin: XXXXXXXXX.Plugin.Plugins.CompanyAccountUpdateContact] [51b6119c-4000-e311-8728-005056b81f64: Reply.Arcese.Plugin.Plugins.CompanyAccountUpdateContact: Create of new_companyaccount]
</TraceText> </OrganizationServiceFault>
that seems strange to me, because the permissions to his profile should allow him to create a company account related to an account owned by his user. Am I right?
It's 2 days that I'm working on it, I'm going crazy :)
Let me know if there's something wrong plese.
Have a nice day,
L