<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
Office 365 Error "Your account has not been configured for this application"
Lifecycle Management
Overview

The Single Sign On (SSO) flow of a federated Microsoft user fails with the following error:

Office 365 Login Failure
Your account has not been configured for this application. Please contact your Okta administrator and ask them to import your account from Active Directory. 


 

Applies To
  • Office 365
  • Single Sign On
  • Federation
  • Error
Cause

The most common cause of this error is that the ImmutableID value is either missing or does not match the existing ImmutableID value in the Microsoft user profile's properties.

On-prem Immutable ID

To check the ImmutableID value, click on the Office integration's Assignments tab and click on the Edit app assignment button next to the affected Office user.

Assignments tab of the Office integration

  • The ImmutableId value will be blank if the user is not sourced from an OnPrem AD integration.

Edit User Assigment

  • If there is no OnPrem AD integration from where the value can be mapped, the ImmutableId mapping will have to be changed to a different Okta attribute that has to be unique and never change. The Okta user ID is unique. This value never changes unless the user is deleted and recreated in Okta.
     
Solution
  1. From the Okta admin dashboard, access the Profile Editor section.
  2. Look for the application profile of the Office 365 instance and click on it.
  3. Choose the Okta User to Office 365 section.

Okta User to Office 365 section

 

The ImmutableID value needs to be populated from Okta to Office using one of the following expressions:

  • Non-AD users use this expression to use the Okta user ID as the immutableID:

    user.getInternalProperty("id")
  • For both AD and non-AD users, use this expression to populate the immutableID:

    hasDirectoryUser()?findDirectoryUser().externalId:user.getInternalProperty("id")

NOTE: The second expression will generate an ImmutableID value for an Okta user with or without an Active Directory assignment. The expression uses this logic to populate the ImmutableID value:

  1. Check IF the user has an Active Directory assignment.
  2. (if TRUE) THEN, it will set the ImmutableId using the AD profile's External ID field value.
  3. (if FALSE) ELSE then it will set ImmutableId using the Okta User ID value.


 

Loading
Office 365 Error "Your account has not been configured for this application"