SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a company intranet where users are automatically logged in using integrated windows authentication.

Is there any way for a web part to grab some of their account information such as full name, email and dept?

share|improve this question
up vote 0 down vote accepted

Based on you having a correct synchronization between AD and SharePoint User Profile Service, you can use the UserProfileManager from the webpart's code behind to grab the users profile and retrieve data:

There is a basic example at the link of how to work it, and you can find more on the web.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.