Share via


UserProfileService.GetUserProfileByName Method

Gets user profile property information by account name.

Namespace:  websvcUserProfileService
Assembly:  MOSSSOAP (in MOSSSOAP.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
    Account name that specifies the user profile property.

Return Value

Type: []
Microsoft.Office.Server.UserProfiles.PropertyData object that contains the user profile property information.

Remarks

For an example on how to use the GetUserProfileByName method, see the example in the GetUserColleagues method.

See Also

Reference

UserProfileService Class

UserProfileService Members

websvcUserProfileService Namespace