When enabling Microsoft Office 365 API integration by clicking on Authenticate with Microsoft Office 365, the following error appears:
AADSTS90002: Tenant '<DomainName>.onmicrosoft.com' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant.
- Microsoft Office 365
- Provisioning
This error occurs because the Microsoft Tenant Name is incorrect in the Applications > Microsoft Office 365 > General tab.
The following video and steps show how to fix the Microsoft Office 365 API Integration error:
- Open an incognito window in your browser and log in to the Okta tenant.
- Go to Okta Admin Console, navigate to Applications > Microsoft Office 365 > General, and click Edit. Enter the correct Microsoft tenant name and save the change.
- For example, if the Microsoft tenant is
acme.onmicrosoft.com, enter:acme.
- For example, if the Microsoft tenant is
- Then navigate to Microsoft Office 365 > Provisioning > Integration > check Enable API Integration.
- Click Authenticate with Microsoft Office 365. The Microsoft Azure login page appears.
- Log in to the Microsoft Azure account.
- Read and accept the requested permissions.
- Upon accepting the scopes in the Microsoft Azure portal, the page is redirected back to Okta.
- Enter the Office 365 Global Administrator credentials.
- Click Test API Credentials.
- A message confirming successful authentication is generated. Click Save.
