You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/msal-client-exception-failed-to-get-user-name.md
+14-16Lines changed: 14 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,33 +1,31 @@
1
1
---
2
-
title: MsalClientException - Failed to get user name
3
-
description: PDiscusses a "Failed to get user name" error when an application uses Integrated Windows Authentication (IWA) with Microsoft Authentication Library (MSAL) and provide solutions.
2
+
title: MsalClientException - Failed to Get User Name
3
+
description: Resolves the Failed to get user name error when an application uses Integrated Windows Authentication (IWA) with Microsoft Authentication Library (MSAL).
4
4
ms.service: entra-id
5
-
ms.date: 06/23/2025
5
+
ms.date: 06/30/2025
6
6
ms.reviewer: willfid, v-weizhu
7
7
ms.custom: sap:Developing or Registering apps with Microsoft identity platform
8
8
---
9
9
10
10
# Microsoft.Identity.Client.MsalClientException: Failed to get user name
11
11
12
-
This article provides a solution to a "Failed to get user name" error that occurs when an application uses Integrated Windows Authentication (IWA) with Microsoft Authentication Library (MSAL).
12
+
This article provides a solution to the "Failed to get user name" error that occurs when an application uses Integrated Windows Authentication (IWA) together with Microsoft Authentication Library (MSAL).
13
13
14
14
## Symptoms
15
15
16
-
When your application uses IWA with MSAL, if calling the `AcquireTokenByIntegratedWindowsAuth` method as follows:
16
+
When your application uses IWA with together MSAL, if calling the `AcquireTokenByIntegratedWindowsAuth` method as follows:
@@ -71,10 +69,10 @@ If the username isn't known beforehand, dynamically retrieve the username and th
71
69
```
72
70
73
71
> [!NOTE]
74
-
>ThismethodtriestoaccesstheWindowsAccountBrokertogettheusersignedintothedevice. Itdoesn't work if the application runs on Internet Information Services (IIS) or Windows Servers.
72
+
>ThismethodtriestoaccesstheWindowsAccountBrokertosigntheuserintothedevice. Itdoesn't work if the application runs on Internet Information Services (IIS) or Windows Server.
0 commit comments