UserProfileManager
using (var spSite = new SPSite(txtUrl.Text)) { var spContext = SPServiceContext.GetContext(spSite); var userProfileManager = new UserProfileManager(spContext); ... var accountName = "MyAD\\mickey.mouse"; // hard code for now var userProfile = userProfileManager.GetUserProfile(accountName); userProfile["WorkEmail"].Value = "mickey.mouse@gmail.com"; userProfile.Commit(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)