Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets memberships for the specified user.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserMemberships", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetUserMemberships ( _
accountName As String _
) As MembershipData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As MembershipData()
returnValue = instance.GetUserMemberships(accountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserMemberships", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public MembershipData[] GetUserMemberships(
string accountName
)
Parameters
accountName
Type: System.StringThe account name of the user.
Return Value
Type: []
An array that contains the memberships of the specified user.
Exceptions
Exception | Condition |
---|---|
SoapException | The memberships cannot be retrieved. |
Remarks
This method returns the list of memberships for the user specified by the accountName parameter.