Tuesday, August 7, 2012

How To Get User Details by ID in SharePoint 2010

If you want to get the user details like Name, Email and other details of SharePoint user based on ID (Example: 12;domain\username), then the below code will be useful


SPContext.Current.Web.AllUsers.GetById(12).Email

No comments:

Post a Comment