Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • 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?  
0
tolppa
Asked:
tolppa
1 Solution
 
ivan_vaguninCommented:
Hi! You can use user login instead:
UserProfile profile = upm.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName);
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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