Creates a new user and adds them to the specified domain.
AuthUserNameNewUsernameA GenericResult instance containing the results of the AddUser action.
The following sample creates a new user account in the domain.net domain.
using System;
using svcUserAdmin;
class svcUserAdminCreateUser
{
static void Main()
{
svcUserAdmin admin = new svcUserAdmin();
GenericResult status = admin.AddUser("admin@domain.net",
"alskdjfhtt",
"dlindt",
"qpoiwu",
"domain.net",
"Dexter",
"Lindt",
false);
if(status.Result)
Console.WriteLine ("User added");
else
Console.WriteLine (status.Message);
}
}
svcUserAdmin Class | svcUserAdmin Namespace