User Data Type

Properties
name data type constraints description
id number required
accountId number required
username string  
createdOn number  
createdBy number required
modifiedOn number  
modifiedBy number required
status UserStatus  
password string  
displayName string  
email string  
phoneNumber string  
loginOn number  
loginAttempts number required
lockedOn number  
optlock number required The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

loginAttemptsResetOn number  
unlockOn number  
trust_date number  

Example

{
  "id" : 12345,
  "accountId" : 12345,
  "username" : "...",
  "createdOn" : 12345,
  "createdBy" : 12345,
  "modifiedOn" : 12345,
  "modifiedBy" : 12345,
  "status" : "SUSPENDED",
  "password" : "...",
  "displayName" : "...",
  "email" : "...",
  "phoneNumber" : "...",
  "loginOn" : 12345,
  "loginAttempts" : 12345,
  "lockedOn" : 12345,
  "optlock" : 12345,
  "loginAttemptsResetOn" : 12345,
  "unlockOn" : 12345,
  "trust_date" : 12345
}