with AcquireTokenByIntegratedWindowsAuth: MsalClientException with "Integrated Windows Auth

Pablo Glomby 176 Reputation points

I have a C# standalone program and I use with AcquireTokenByIntegratedWindowsAuth and I get this Exception:
MsalClientException - "Integrated Windows Auth is not supported for managed users"

What am I doing wrong?
I took the code from here:

When I login in Windows I enter the good user name like peter@Company portal .com where is for Office 365...

I type set in the command prompt and I well get:


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
17,446 questions
0 comments No comments
{count} votes

Accepted answer
  1. JamesTran-MSFT 34,031 Reputation points Microsoft Employee

    @Pablo Glomby
    Thank you for your post!

    From the error message that you provided and within the GitHub doc, it states that managed users cannot use this Auth flow.


    I hope this helps!
    Thank you for your time and patience throughout this issue.


    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful