o365 Error: In the case of a Federated user - The security token could not be authenticated

Created: 2024-11-21 10:13:36
Modified: 2026-05-13 11:13:44
Tags: Office 365 System Requirements Troubleshooting

The following error may occur on an o365 connection (as source or destination).

This may occur on Authentication test, Discovery, Simulation or Sync.

This error usually indicates the specified user account does not meet the requirements:

  • The o365 User account is disabled / locked.
  • The password is expired.
  • User is not licensed.

Refer to UnitySync Office 365 login requirements for o365 User login account requirements.

Check Lock : 11/20/24 12:14:22 Powershell Error Crit | In the case of a Federated user(that is owned by a federated IdP, as opposed to a managed user owned in an Azure AD tenant) ID3242: The security token could not be authenticated or authorized.The user does not exist or has entered the wrong passwordInnerException : There was an error parsing the WS-Trust response from the endpoint. This may occur if there are issues with your ADFS configuration. See https://aka.ms/msal-net-iwa-troubleshooting for more details. Enable logging to see more details. See https://aka.ms/msal-net-logging. Error Message: Federated service at https://autologon.microsoftazuread-sso.com/nmhealth.onmicrosoft.com/winauth/trust/2005/usernamemixed?client-request-id=f81ff859-b276-470e-a706-3bc326623179 returned error: Authentication Failure

Powershell Err Msg | [31;1mInstall-Package: [31;1mNo match was found for the specified search criteria and module name 'ExchangeOnlineManagement'. Try Get-PSRepository[0m

Knowledgebase

Directory
  1. Directify - Self Service

  2. UnitySync - Sync
Password
  1. emPass - Sync
Obsolete
  1. Profiler
  2. SimpleSync