Creates a new user and adds them to the specified domain. Supports setting mailbox size.
A GenericResult instance containing the results of the AddUser action.
AddUser2 is an updated version of the AddUser method that supports defining the maximum mailbox size.
The following sample creates a new user account in the domain.net domain and sets the maximum mailbox size to 2MB.
using System;
using svcUserAdmin;
class svcUserAdminCreateUser2
{
static void Main()
{
svcUserAdmin admin = new svcUserAdmin();
GenericResult status = admin.AddUser("admin@domain.net",
"alskdjfhtt",
"dlindt",
"qpoiwu",
"domain.net",
"Dexter",
"Lindt",
false,
2);
if(status.Result)
Console.WriteLine ("User added");
else
Console.WriteLine (status.Message);
}
}
svcUserAdmin Class | svcUserAdmin Namespace