After federating a Microsoft Office 365 (O365) tenant with Okta, users attempting to login to SharePoint Online may fail with the following error:
Application with Identifier https://<tenant>.onmicrosoft.com.sharepoint.com was not found in the directory.
- Microsoft Office 365 (O365)
- Sharepoint Online
- Federation
The Microsoft Tenant Name in the O365 integration of Okta is configured with the full tenant URL rather than using just the subdomain.
Remove the .onmicrosoft.com domain suffix by following the below steps:
- Open the Okta Admin Dashboard.
- Navigate to Admin > Applications > Applications > [O365].
- In the O365 integration, click General.
- In the App Settings section, click Edit.
- Update the Microsoft Tenant Name to use just the prefix. For example, if the Microsoft tenant is
acme.onmicrosoft.com, enteracme.
- When finished, click Save.
