UserProfileService.GetUserOrganizations method

Gets the organizations for the specified user.

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

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

Parameters

accountName
Type: System.String

The account name of the user.

Return value

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

ExceptionCondition
SoapException

The organizations cannot be added.

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

Show: