Edit user profile using webservice Sharepoint 2010 webservice
This example will show you how to edit a user profile in SharePoint 2010 via UserProfileService webservice
public static localhost.UserProfileService myService = new localhost.UserProfileService();
UserProfileWebService.localhost.PropertyData[] newdata = new UserProfileWebService.localhost.PropertyData[1];
newdata[0] = new UserProfileWebService.localhost.PropertyData();
newdata[0].Name = "Isha";
myService.ModifyUserPropertyByAccountName("domainname\\Isha", newdata);
public static localhost.UserProfileService myService = new localhost.UserProfileService();
UserProfileWebService.localhost.PropertyData[] newdata = new UserProfileWebService.localhost.PropertyData[1];
newdata[0] = new UserProfileWebService.localhost.PropertyData();
newdata[0].Name = "Isha";
myService.ModifyUserPropertyByAccountName("domainname\\Isha", newdata);
0 comments:
Post a Comment