<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
Microsoft Office 365 Provisioning Error "Could not validate your Office 365 credentials, received error: 400 AADSTS50126: Error validating credentials due to invalid username or password"
Okta Integration Network
Okta Classic Engine
Okta Identity Engine
Overview

Microsoft Office 365 provisioning flow fails with the following error visible in the Okta dashboard:

Automatic provisioning of user <username> to app Microsoft Office 365 failed: Could not validate your Office 365 credentials, received error: 400 AADSTS50126: Error validating credentials due to invalid username or password. Trace ID: <TraceID> Correlation ID: <Correlation ID> Timestamp: <Timestamp>
 

Error Message

 
Applies To
  • Microsoft Office 365
  • Provisioning
  • Error
Cause

This error appears because the Office 365 Global Administrator credentials for creating the API connection are invalid.

Solution

Please follow the below video or steps:


 

  1. Go to Okta Admin Console, navigate to ApplicationsApplications > Office 365 > Provisioning > Integration > click Edit.
  2. Click Re-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.
  3. Enter the valid Office 365 Global Administrator credentials.
  4. Click Test API Credentials.
  5. A message confirming successful authentication is generated. Click Save
  6. Attempt the failed tasks again. Navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.

Tasks

  1. After locating the failed task for the user that should be retried, click Retry Selected.
Loading
Microsoft Office 365 Provisioning Error "Could not validate your Office 365 credentials, received error: 400 AADSTS50126: Error validating credentials due to invalid username or password"