Share via


UserProfileService.ModifyUserPropertyByAccountName Method

Modifies a user profile property for the specified account name.

Namespace:  [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx

Syntax

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

instance.ModifyUserPropertyByAccountName(accountName, _
    newData)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/ModifyUserPropertyByAccountName", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void ModifyUserPropertyByAccountName(
    string accountName,
    PropertyData[] newData
)

Parameters

  • newData
    Type: []

    The new property name and values.

Exceptions

Exception Condition
SoapException

The properties for the user profile in newData cannot be changed or the user profile cannot be accessed.

Remarks

This method modifies the editable user profile properties with the new values for the specified account name.

See Also

Reference

UserProfileService Class

UserProfileService Members

UserProfileService Web Service