UserProfileService.GetUserProfileByName method

Gets the user profile property information by account name.

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

Syntax

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

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

Parameters

  • AccountName
    Type: System.String

    The account name of the user profile to be retrieved.

Return value

Type: []
An array that contains the properties information about the specified user profile.

Exceptions

Exception Condition
SoapException

The information cannot be retrieved.

Remarks

This method gets the user profile for the specified account name, and returns the user profile properties.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace