AADSTS500011: The resource principal named https://siteurl was not found in the tenant named <tenantName>.

Hi All,

Post upgrade from CM 8.9 to 9.0 we are unable to connect to our O365 tenant using cloud accounts.

AADSTS500011: The resource principal named https://siteurl was not found in the tenant named <tenantName>. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 791ee783-dda7-4433-a90e-ec74710a0700 Correlation ID: 9875d67f-a50c-483e-be86-9ac855064064 Timestamp: 2020-01-16 20:44:14Z Error: AADSTS500011: The resource principal named https://siteur was not found in the tenant named <tenantName>. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 791ee783-dda7-4433-a90e-ec74710a0700 Correlation ID: 9875d67f-a50c-483e-be86-9ac855064064 Timestamp: 2020-01-16 20:44:14Z Stack: at Metalogix.SharePoint.Adapters.CSOM2013.Authentication.AzureADTokenProvider.RetrieveToken(String resourceUrl, Boolean silent) at Metalogix.SharePoint.UI.WinForms.Administration.ConnectToSharePointDialog.<>c__DisplayClass29_0.<SaveUI>b__0(BackgroundWorker worker) Type: Metalogix.SharePoint.Adapters.Exceptions.AzureADTokenAcquisitionException HResult:-2146233088 Inner Exception Error: AADSTS500011: The resource principal named https://siteur was not found in the tenant named <tenantName>. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 791ee783-dda7-4433-a90e-ec74710a0700 Correlation ID: 9875d67f-a50c-483e-be86-9ac855064064 Timestamp: 2020-01-16 20:44:14Z Stack: at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenInteractiveHandler.VerifyAuthorizationResult() at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenInteractiveHandler.<PreTokenRequestAsync>d__14.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.<RunAsync>d__60.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenCommonAsync>d__42.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.<AcquireTokenAsync>d__33.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Metalogix.SharePoint.Adapters.CSOM2013.Authentication.AzureADTokenProvider.RetrieveAccessToken(String resourceUrl, Boolean silent) at Metalogix.SharePoint.Adapters.CSOM2013.Authentication.AzureADTokenProvider.RetrieveToken(String resourceUrl, Boolean silent) Type: Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException ErrorCode:invalid_resource HResult:-2146233088