We have enabled Server to Server integration with SharePoint 2013 and it is creating folder and adding documents...etc. Trying to enable OneDrive results in the following when using our SharePoint Farm Admin user, and when using myself who is a site collection admin I get access denied.
Is On-Premise OneDrive for business supported with CRM On-Premise and SharePoint 2013 On-Premise?
Is there additional security setup for it?
BTW: My One drive web application is not a sitecollection of my Server to Server WebApplication used for integration but is wired up ain the UPS for SP as the default MySite.
Access denied (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault). , exception message : Access denied, callerId: {0B0885D1-4771-E611-80E9-0050569F7CAF}
[2016-09-29 11:25:09.397] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 230 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: a763b53c-e1b3-469d-aea3-9a8c02da7567 | CrmException..ctor ilOffset = 0x9
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9
at CrmException..ctor(String message, Int32 errorCode) ilOffset = 0x6
at SharePointDBHelper.SetStateForOneDrive(Boolean isOneDriveEnabled, ExecutionContext context) ilOffset = 0x63
at OrganizationServiceInternal`1.Update(IBusinessEntity organization, ExecutionContext context) ilOffset = 0x663
at EnableOneDriveForBusinessSettingsPage.ConfigureForm() ilOffset = 0x133
at AppUIPage.OnPreRender(EventArgs e) ilOffset = 0x13
at Control.PreRenderRecursiveInternal() ilOffset = 0x54
at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x6D3
at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x3C
at Page.ProcessRequest() ilOffset = 0x14
at Page.ProcessRequest(HttpContext context) ilOffset = 0x33
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10A
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) ilOffset = 0x5C
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) ilOffset = 0x16A
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>Crm Exception: Message: Access denied, ErrorCode: -2147088639
Unexpected Error
An error has occurred.
Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.
Exception occured while calling async server, exception : -2146233087 , Inner Exception : System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: An unexpected error occurred. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault). , exception message : An unexpected error occurred., callerId: {94EFD496-7086-E611-80EF-0050569F7CAF}
[2016-09-29 11:18:54.542] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 226 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e02c592-6f73-401b-ae24-6614bfdb9996 | CrmException..ctor ilOffset = 0x9
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9
at CrmException..ctor(String message, Int32 errorCode) ilOffset = 0x6
at SharePointDBHelper.SetStateForOneDrive(Boolean isOneDriveEnabled, ExecutionContext context) ilOffset = 0x63
at OrganizationServiceInternal`1.Update(IBusinessEntity organization, ExecutionContext context) ilOffset = 0x663
at EnableOneDriveForBusinessSettingsPage.ConfigureForm() ilOffset = 0x133
at AppUIPage.OnPreRender(EventArgs e) ilOffset = 0x13
at Control.PreRenderRecursiveInternal() ilOffset = 0x54
at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x6D3
at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ilOffset = 0x3C
at Page.ProcessRequest() ilOffset = 0x14
at Page.ProcessRequest(HttpContext context) ilOffset = 0x33
at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D
at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15
at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10A
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) ilOffset = 0x5C
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) ilOffset = 0x16A
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970