UserProfileService.UpdateColleaguePrivacy method

Updates a colleague privacy policy level for the specified account name.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateColleaguePrivacy", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateColleaguePrivacy(
	string accountName,
	string colleagueAccountName,
	Privacy newPrivacy
)

Parameters

accountName
Type: System.String

The account name of the user.

colleagueAccountName
Type: System.String

The account name of the colleague.

newPrivacy
Type: WebSvcUserProfileService.Privacy

The new privacy policy level.

ExceptionCondition
SoapException

The policy cannot be changed.

This method updates the privacy policy level with the new value for the colleague specified by the colleagueAccountName parameter of the user specified by the accountName parameter.

Show: