Integrated Windows Auth is not supported for Managed users. How to fix?
Issue Description: When using Integrated Windows Authentication (IWA) from Office 365 Scope, the following error is thrown when trying to authenticate .
Full Error In Text:
Microsoft.Graph.ServiceException: Code: generalException 01/09/2023 18:11:57 Message. An error occurred sending the request. ---> RemoteException wrapping Microsoft.Identity.Client.MsalClientException: Integrated Windows Auth is not supported for Managed users. See https://aka.ms/msal-net-iwa for details.
Root Cause: User is added directly to Entra ID (formerly Azure AD), via Azure Portal. This way, the user is not synchronized with the On-Premise Active Directory and will not be using ADFS. Managed Users are commonly known as Cloud-Only Users.
Resolution:
- Discuss with the Infrastructure Team/IT Administrator to add the user/ the Robot user to a Federated domain.
- To see what Federated domains your Organization is using, access https://portal.azure.com -> Domain Names