Letras y Números


Home | Pages | Archives


Get mail and manager from user profile

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:

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.