Haifeng

How get SharePoint user login name in SharePoint 2010/2013

There are a lot of login authentications in SharePoint, different ways of certification for SharePoint user is different, as well as property. In SharePoint 2010 you can get user login name by using: public static SPPrincipal EnsurePeople(SPWeb web, string peopleName) { SPPrincipal principal = GetPeople(web, peopleName); if (principal != null) { return principal; } else […]