UserProfileService.GetCommonMemberships method

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

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

Syntax

'Declaration
<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 Function GetCommonMemberships ( _
    accountName As String _
) As MembershipData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As MembershipData()

returnValue = instance.GetCommonMemberships(accountName)
[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

Return value

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

Exceptions

Exception Condition
SoapException

The groups cannot be retrieved.

Remarks

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

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace