1

Is there a way to get additional active directory details from HttpContext.User?

Currently, I can use it to get the user identity: HttpContext.User.Identity.

What if I needed to access more attributes, such as employeeId, directReports, etc? Can I do it the same way? If not, what's the best way to implement that for an ASP.net / MVC application?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Cody
  • 8,686
  • 18
  • 71
  • 126

1 Answers1

3

I understand you want to get this information from the Active Directory? Check the following post for that: How to get the current user's Active Directory details in C#

Community
  • 1
  • 1
Michiel van Vaardegem
  • 2,260
  • 20
  • 35