Updates the preferences of the specified user.

Syntax

Visual Basic (declaration)
Public Function UpdateUserPreferences( _ 
ByVal AuthenticationTicket as String, _ ByVal UserName as String, _ ByVal xmlPreferences as String) as XmlNode

C# (declaration)
public XmlNode UpdateUserPreferences( 
string AuthenticationTicket, string UserName, string xmlPreferences)

Parameters

AuthenticationTicket
    string inforouter ticket
UserName
    string The Username of the to be updated.
xmlPreferences
    string Xml fragment that sets new preferences. See the remarks section for the details.

Return Value

returns xml fragment.
<response success="true" error="">
if success attribute is "true", the user preferences has been updated successfully.
if success attribute is "false", the error attribute indicates the encountered error.

Remarks

The caller must be the system administrator or a domain manager of the domain in which the user is a local member or the user.

The xmlpreference string must be structured below.

<Preferences>
<Language>en</Language>
<DefaultPortal />
<ShowArchives>False</ShowArchives>
<ShowHiddens>False</ShowHiddens>
<EmailType>HTML</EmailType>
<AttachDocumentToEmail>False</AttachDocumentToEmail>
<NotificationType>INSTANT</NotificationType>
</Preferences>

EmailType value might be HTML or TEXT
NotificationType value might be "NONE","INSTANT" or "DAILY REPORT"