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);

0 comments:

Post a Comment

Disclaimer

This is a personal weblog. The opinions expressed here represent my own and not those of my employer or anyone else. Should you have any questions or concerns please e-mail me at sharepointprogrammingblogger@gmail.com .

Copyright (c) 2010 @ myshaepointwork.blogspot.com. All rights are reserved.Do Not Copy.

@ Learning SharePoint.com