Function

$().SPServices

Web Service

UserProfileService

A big thanks to Matt Bramer for his help in wrapping the remaining operations for this Web Service.

Supported Operations

Operation Options MSDN Documentation Introduced
AddColleague accountName, colleagueAccountName, group, privacy, isInWorkGroup UserProfileService.AddColleague Method 0.6.0
AddLink accountName, name, url, group, privacy UserProfileService.AddLink Method 0.6.0
AddMembership accountName, membershipInfo, group, privacy UserProfileService.AddMembership Method 0.6.0
AddPinnedLink accountName, name, url UserProfileService.AddPinnedLink Method 0.6.0
CreateMemberGroup membershipInfo UserProfileService.CreateMemberGroup Method 0.6.0
CreateUserProfileByAccountName accountName UserProfileService.CreateUserProfileByAccountName Method 0.6.0
GetCommonColleagues accountName UserProfileService.GetCommonColleagues Method 0.6.0
GetCommonManager accountName UserProfileService.GetCommonManager Method 0.6.0
GetCommonMemberships accountName UserProfileService.GetCommonMemberships Method 0.3.0
GetInCommon accountName UserProfileService.GetInCommon Method 0.6.0
GetPropertyChoiceList propertyName UserProfileService.GetPropertyChoiceList Method 0.6.0
GetUserColleagues accountName UserProfileService.GetUserColleagues Method 0.3.0
GetUserLinks accountName UserProfileService.GetUserLinks Method 0.3.0
GetUserMemberships accountName UserProfileService.GetUserMemberships Method 0.3.0
GetUserPinnedLinks accountName UserProfileService.GetUserPinnedLinks Method 0.3.0
GetUserProfileByGuid guid UserProfileService.GetUserProfileByGuid Method 0.6.0
GetUserProfileByIndex index UserProfileService.GetUserProfileByIndex Method 0.6.0
GetUserProfileByName AccountName UserProfileService.GetUserProfileByName Method 0.3.0
GetUserProfileCount None UserProfileService.GetUserProfileCount Method 0.3.0
GetUserProfileSchema None UserProfileService.GetUserProfileSchema Method 0.3.0
ModifyUserPropertyByAccountName accountName, newData UserProfileService.ModifyUserPropertyByAccountName Method 0.5.0
RemoveAllColleagues accountName UserProfileService.RemoveAllColleagues Method 0.6.0
RemoveAllLinks accountName UserProfileService.RemoveAllLinks Method 0.6.0
RemoveAllMemberships accountName UserProfileService.RemoveAllMemberships Method 0.6.0
RemoveAllPinnedLinks accountName UserProfileService.RemoveAllPinnedLinks Method 0.6.0
RemoveColleague accountName, colleagueAccountName UserProfileService.RemoveColleague Method 0.6.0
RemoveLink accountName, id UserProfileService.RemoveLink Method 0.6.0
RemoveMembership accountName, sourceInternal, sourceReference UserProfileService.RemoveMembership Method 0.6.0
RemovePinnedLink accountName, id UserProfileService.RemovePinnedLink Method 0.6.0
UpdateColleaguePrivacy accountName, colleagueAccountName, newPrivacy UserProfileService.UpdateColleaguePrivacy Method 0.6.0
UpdateLink accountName, data UserProfileService.UpdateLink Method 0.6.0
UpdateMembershipPrivacy accountName, sourceInternal, sourceReference, newPrivacy UserProfileService.UpdateMembershipPrivacy Method 0.6.0
UpdatePinnedLink accountName, data UserProfileService.UpdatePinnedLink Method 0.6.0

Last edited Feb 20, 2013 at 5:47 PM by sympmarc, version 14

Comments

pettys Sep 2, 2011 at 11:28 PM 
Here's a javascript snippet the calls GetUserProfileByName and parses the results into a regular JavaScript object:
http://jsfiddle.net/pettys/aJgKC/

fereko Jul 6, 2010 at 6:17 PM 
Get a specific value: $(xData.responseXML).find("Name:contains('FieldInYourProfile')").parent().find('Value').text()
Is there a better way?