This topic has not yet been rated - Rate this topic

UserProfileService.UpdateMembershipPrivacy method

This documentation is preliminary and is subject to change.

Updates the membership privacy for the specified account name.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)
[SoapDocumentMethodAttribute("http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/UpdateMembershipPrivacy", RequestNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	ResponseNamespace = "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateMembershipPrivacy(
	string accountName,
	Guid sourceInternal,
	string sourceReference,
	Privacy newPrivacy
)

Parameters

accountName
Type: System.String
The account name of the user.
sourceInternal
Type: System.Guid
The GUID for the member group of the membership to update.
sourceReference
Type: System.String
The source reference for the member group of the membership to update.
newPrivacy
Type: WebSvcUserProfileService.Privacy
The new privacy policy.
ExceptionCondition
SoapException

The membership privacy cannot be updated.

This method updates the privacy of the membership specified by the sourceInternal and sourceReference parameters for the user specified by the accountName parameter.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.