CreateUser
Creates a new user.
Returns – A UserResponse containing a User Object in the Users array. (See RequestResponse in Appendix B)
Parameters
Name | Type | Description |
---|---|---|
encryptedToken | string | Required. Encrypted Token returned from client authentication. Returns null if token has expired or is invalid. |
salt | string | Required. Any combination of text and numbers that was used to encrypt the plain text password into encryptedPassword. |
user | User | Required. User Object. |
Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]ServiceAPIClient ws = new ServiceAPIClient();
string salt = “Z1s6aXNQpjQ75wRX1ulI551sR1uHyg3YsOcPLeL9TaM”;
UserResponse userResponse;
string encryptedPassword = string.Empty;
encryptedPassword = ((RequestResponse)ws.EncryptString(“password”, salt)).ReturnValue;
User createUser = new User();
createUser.FirstName = “FirstName”; //Required field
createUser.LastName = “LastName”; //Required field
createUser.Username = “UserName”; //Required field
createUser.Password = encryptedPassword; //Required field
createUser.Company = “Company name”;
createUser.Region = string.Empty;
createUser.SubscriptionTypes = “Annual”;
createUser.TimeZoneId = “Pacific Standard Time”;
userResponse = ws.CreateUser(encryptedToken, salt, createUser);
[/gdlr_notification]