UserProfileService.GetUserOrganizations method

Gets the organizations for the specified user.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserOrganizations", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetUserOrganizations ( _
    accountName As String _
) As OrganizationProfileData()
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As OrganizationProfileData()

returnValue = instance.GetUserOrganizations(accountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserOrganizations", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public OrganizationProfileData[] GetUserOrganizations(
    string accountName
)

Parameters

Return value

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

Exceptions

Exception Condition
SoapException

The organizations cannot be added.

Remarks

This method returns the list of information about the organizations to which the user specified by the accountName parameter belongs.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace