Nothing magic to see here, just how to get an SPUser object from SharePoint.

using (SPWeb web = new SPSite(SPContext.Current.Web.Url).RootWeb)
{
	SPUser user = web.EnsureUser("loginName");
}

Posted by Chris Buchanan

Leave a reply

Your email address will not be published. Required fields are marked *