• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 461
  • Last Modified:

How to get UserProfile or Account ID for current user?

I am messing with userprofiles. I found this (http://social.technet.microsoft.com/Forums/hu-HU/sharepoint2010customization/thread/c7131e9a-576b-439f-8d15-9ad76aa72d42) to help me read a property from user profile, but how to get Account ID of the current user?  
1 Solution
Hi! You can use user login instead:
UserProfile profile = upm.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now