UserProfileService.GetCommonMemberships method

Gets the common membership groups that the specified user shares with the current user.

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

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

Parameters

accountName
Type: System.String

The account name of the user.

Return value

Type: []
An array that contains the common membership groups that the specified user shares with the current user.

ExceptionCondition
SoapException

The groups cannot be retrieved.

This method returns the list of membership groups that the specified user and the current user have in common.

Show: