<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

"UNEXPECTED_ERROR" or "Invalid admin credentials" Error when Authenticating Office 365 Admin Username/Password

Single Sign-On
Okta Classic Engine
Okta Identity Engine

Overview

The below errors can be seen when attempting to authenticate or re-authenticating Office 365 (O365) Admin Username/Password:

 

Invalid admin credentials


UNEXPECTED_ERROR 


"invalid admin credentials" error 
UNEXPECTED_ERROR 

Applies To

  • Microsoft Office 365

Cause

  • Invalid username or password.
  • Advanced API Access is not enabled.
  • Advanced API Access needs to be re-authenticated.

Solution

  1. Invalid username or password:
    • Make sure that the username and password are correct. Sometimes, copying the values may capture invalid characters. Try to enter the credentials manually.

 

  1. Advanced API Access is not enabled:
    • Enable the Advanced API Access option.
      1. This configuration can be found in the Okta O365 app > Sign On > Settings > EditAPI CREDENTIALS > Advanced API Access.
      2. Once the Advanced API Access option is enabled, click the Authenticate with Microsoft Account and authenticate using Microsoft Global Administrator credentials.

API Credentials

 

  1. Advanced API Access needs to be re-authenticated:
    • If the Advanced API Access option is already enabled, it may need to be re-authenticated.
      1. To re-authenticate, navigate to Okta O365 app > Sign On > Settings > EditAPI CREDENTIALS > Advanced API Access.
      2. Click Re-authenticate with Microsoft Account and authenticate using Microsoft Global Administrator credentials.

"Re-authenticate with Microsoft Account" option

 

Loading
Okta Support - "UNEXPECTED_ERROR" or "Invalid admin credentials" Error when Authenticating Office 365 Admin Username/Password