December 4, 2015 1:06 pm
ServerContext serverContext = ServerContext.GetContext(web.Site);
UserProfileManager myUserProfile = new UserProfileManager(serverContext);
UserProfile currentUserProfile = myUserProfile.GetUserProfile(userName);
string managerUserName = (string)currentUserProfile[“manager”].Value;
string workerEmail = (string)currentUserProfile[“WorkEmail”].Value;
Posted by juanpablo1manrique
Categories: SharePoint
Tags: SharePoint
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.