Ascio DNS

C# CreateUser

Creates a new user. The user can be used for the zone-permissions. Please see Roles and Users for more information about user-permissions.

Response CreateUser(CreateUser createUser)

Response codes

ResultCodeMessageValue
200OK
400Parameter value error - Null or invalid value
401Authorization failed
403Access denied
416Validation failed
203User already exists

CreateUser Request

Property
user

CreateUserResponse

Property
CreateUserResult

C# example

AscioServices services = new ServiceReference1.AscioServices();


User user =  new User();
user.CreatedDate = "CreatedDateTest";
user.Email = "administrator@ascio-test-domain.com"
user.Name = "ascio-is-great.com";
user.Password = "PasswordTest";
user.RequireTfa = "RequireTfaTest";
user.RequiredToChangePassword = "RequiredToChangePasswordTest";
user.Role = "RoleTest";
user.TfaSetupComplete = "TfaSetupCompleteTest";
user.UpdatedDate = "UpdatedDateTest";
user.UserName = "UserNameTest";;
Response response = services.CreateUser(todo);

if (response.ResultCode == 200) {
	Console.WriteLine("OK");
} else {
	Console.WriteLine("Error: "+response.ResultMessage+" ("+response.resultMessage+")";
}
WSDL AscioDns
https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl (OTE)
https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.