...
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerResponseEnrollUser resp = EnrollUser("accountLogin", "accountKey", "Mandy", "Last", "Mandy", "M@5ndy58!", Mandy5@myco.com, "+1(407)555-1212, 02, // desktop token 1, // time based otp 6, // otp digits 30, // timewindow false, // add user and this device 0); |
Code Block | ||||
---|---|---|---|---|
| ||||
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; } |
...
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | User account login name |
type | string | add_oath_user |
firstName | string | First name |
lastName | string | Last name |
string | User email. Used for sending email notifications nd temporary pass codes. | |
pw | string | Users password. If omitted one will be generated. If using Active Directory on the server this parameter is ignored. |
mobile | string | Users mobile phone Used for sending voice or sms messages |
notificationMethod | short | send welcome message to user. 0 = none, 1=email, 2=sms |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "add_oath_user", "firstName": "Mandy5", "lastName": "Mandy5", "email": "Mandy5", "pw": "Mandy5", "mobile": "407-555-1212", "notificationMethod": 0 } |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "errorCode": 0, "errorMessage": "OK", "type": "add_oath_user" } |
...