UserProfileService.GetUserMemberships method

Gets memberships for the specified user.

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

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

Parameters

accountName
Type: System.String

The account name of the user.

Return value

Type: []
An array that contains the memberships of the specified user.

ExceptionCondition
SoapException

The memberships cannot be retrieved.

This method returns the list of memberships for the user specified by the accountName parameter.

Show: