UserProfileService.GetUserPropertyByAccountName method

Gets the information about the specified property for the specified user.

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

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

Parameters

accountName
Type: System.String

The account name of the user.

propertyName
Type: System.String

The name of the property.

Return value

Type: WebSvcUserProfileService.PropertyData
The information about the specified property of the specified user.

ExceptionCondition
SoapException

The information cannot be retrieved.

This method gets the user profile by the specified account name, and retrieves the information about the specified property in the user profile.

Show: