---
title: "How to retrieve user name in case of Window Authentication?"  
description: "How to retrieve user name in case of Window Authentication?"  
author: "Tarun Gautam"  
published: 2017-11-15  
canonical: https://answers.mindstick.com/qa/30717/how-to-retrieve-user-name-in-case-of-window-authentication  
category: "programming"  
tags: ["asp.net", ".net programming"]  
reading_time: 1 minute  

---

# How to retrieve user name in case of Window Authentication?

How to [retrieve](https://www.mindstick.com/forum/34400/how-to-retrieve-form-values-in-controller-action) [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) [name](https://answers.mindstick.com/qa/100691/name-a-famous-tennis-tournament-played-on-grass) in case of [Window](https://www.mindstick.com/forum/1672/remove-a-grid-from-window-using-wpf) [Authentication](https://www.mindstick.com/articles/324836/how-to-use-authentication-in-asp-dot-net-core-mvc)?

## Answers

### Answer by Uttam Misra

Should work for you:

```
User.Identity.Name
```


---

Original Source: https://answers.mindstick.com/qa/30717/how-to-retrieve-user-name-in-case-of-window-authentication

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
