UserProfileService.GetUserProfileByName Method

Gets the user profile property information by account name.

Namespace:  [UserProfileService Web service]
Web service reference: http://*Site*/\_vti\_bin/


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetUserProfileByName ( _
    AccountName As String _
) As PropertyData()
Dim instance As UserProfileService
Dim AccountName As String
Dim returnValue As PropertyData()

returnValue = instance.GetUserProfileByName(AccountName)
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public PropertyData[] GetUserProfileByName(
    string AccountName


  • 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.


Exception Condition

The information cannot be retrieved.


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

See Also


UserProfileService Class

UserProfileService Members

UserProfileService Web Service