UserProfileService.UpdateMembershipPrivacy method
SharePoint 2013
This documentation is preliminary and is subject to change.
Updates the membership privacy for the specified account name.
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.
| Exception | Condition |
|---|---|
| SoapException | The membership privacy cannot be updated. |