SmarterMail Pro™ Administration Web Services

svcUserAdmin.UpdateUser2 Method 

Updates the specified user's settings. Supports updating mailbox size.

public GenericResult UpdateUser2(
   string AuthUserName,
   string AuthPassword,
   string EmailAddress,
   string NewPassword,
   string NewFirstName,
   string NewLastName,
   bool IsDomainAdmin,
   int maxMailboxSize
);

Parameters

AuthUserName
User name with domain administrative privileges
AuthPassword
Password for AuthUserName
EmailAddress
Email address for the user account to be updated
NewPassword
New password for specified user
NewFirstName
Account user's first name
NewLastName
Account user's last name
IsDomainAdmin
Defines whether the user account has administrative privileges
maxMailboxSize
Sets the maximum mailbox size (in megabytes)

Return Value

A GenericResult instance containing the results of the UpdateUser2 action.

Remarks

UpdateUser2 is an updated version of the UpdateUser method that supports modifying the maximum mailbox size.

Example

The following sample updates the dlindt@domain.net email account.

using System;
using svcUserAdmin;

class svcUserAdminUpdateUser2
{
 static void Main()
 {
   svcUserAdmin admin = new svcUserAdmin();
   GenericResult status = admin.UpdateUser("admin@domain.net",
                                           "alskdjfhtt",
                                           "dlindt@domain.net",
                                           "34slkjfjh",
                                           "Dexter",
                                           "Lindt III",
                                           false,
                                           2);

   if(status.Result)
     Console.WriteLine ("User updated");
   else
     Console.WriteLine (status.Message);
  }
}

See Also

svcUserAdmin Class | svcUserAdmin Namespace