The error below appears when OneDrive or SharePoint Online are accessed from the Microsoft Office 365 app within Okta.
AADSTS700011: Application with identifier https://tenant_name.onmicrosoft.com.sharepoint.com was not found in the directory.
- Microsoft Office 365
- SharePoint
- OneDrive
- Single Sign-On
- Typing specific extra values
This is caused by adding the .onmicrosoft.com to the Microsoft Tenant Name value from the General tab of the Microsoft Office 365 app within Okta. When authenticating with OneDrive and SharePoint, the app identifier generated is based on this value. Adding the .onmicrosoft.com part will send a resource identifier to Microsoft that does not exist.
Type in the correct value in the Microsoft Tenant Name field:
NOTE: Do not put onmicrosoft.com on that field, only the tenant's name.
After the change, it might not work, and still need to do the following steps to force a refresh on the application:
- Edit the apps and uncheck the SharePoint and OneDrive apps. Hit Save.
- Edit the apps and now check back the SharePoint and OneDrive apps. Hit Save.
