UserLogin Data Type

User model. (Database annotations)

Available Since
1.0
Subtypes
PidomeAdminUser, PidomeSystemUser
Properties
name data type constraints description
password string required The user password.
username string   the username.
id string   the id.
version number   Entity version.
lastLogin number   the lastLogin.
roles array of UserRole   the role.
person Person   Returns the person bound to this user.
enabled boolean required boolean If a user login is enabled or not.
initialLogin boolean required boolean the initialLogin.
salt string   the salt.

Example

{
  "password" : "...",
  "username" : "...",
  "id" : "...",
  "version" : 12345,
  "lastLogin" : 12345,
  "roles" : [ {
    "permissionOperations" : [ {
      "permission" : "USER_SELF_REMOTE_APPS",
      "operation" : "UPDATE"
    }, {
      "permission" : "PROPERTY_LEVEL_SECTION",
      "operation" : "INTERACT"
    } ],
    "name" : "...",
    "identifier" : "...",
    "description" : "...",
    "id" : "...",
    "version" : 12345,
    "users" : [ {
      "password" : "...",
      "username" : "...",
      "id" : "...",
      "version" : 12345,
      "lastLogin" : 12345,
      "roles" : [ { }, { } ],
      "person" : { },
      "enabled" : true,
      "initialLogin" : true,
      "salt" : "..."
    }, {
      "password" : "...",
      "username" : "...",
      "id" : "...",
      "version" : 12345,
      "lastLogin" : 12345,
      "roles" : [ { }, { } ],
      "person" : { },
      "enabled" : true,
      "initialLogin" : true,
      "salt" : "..."
    } ]
  }, {
    "permissionOperations" : [ {
      "permission" : "ROLES",
      "operation" : "INTERACT"
    }, {
      "permission" : "AUTOMATION_RULES",
      "operation" : "INTERACT"
    } ],
    "name" : "...",
    "identifier" : "...",
    "description" : "...",
    "id" : "...",
    "version" : 12345,
    "users" : [ {
      "password" : "...",
      "username" : "...",
      "id" : "...",
      "version" : 12345,
      "lastLogin" : 12345,
      "roles" : [ { }, { } ],
      "person" : { },
      "enabled" : true,
      "initialLogin" : true,
      "salt" : "..."
    }, {
      "password" : "...",
      "username" : "...",
      "id" : "...",
      "version" : 12345,
      "lastLogin" : 12345,
      "roles" : [ { }, { } ],
      "person" : { },
      "enabled" : true,
      "initialLogin" : true,
      "salt" : "..."
    } ]
  } ],
  "person" : {
    "mobiles" : [ {
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "id" : "...",
      "version" : 12345
    }, {
      "mobileDescription" : "...",
      "uniqueId" : "...",
      "throttled" : true,
      "geofence" : true,
      "id" : "...",
      "version" : 12345
    } ],
    "geoLocation" : {
      "latitude" : 12345.0,
      "longitude" : 12345.0,
      "distance" : 12345.0,
      "lastUpdate" : "..."
    },
    "firstName" : "...",
    "lastName" : "...",
    "id" : "...",
    "version" : 12345
  },
  "enabled" : true,
  "initialLogin" : true,
  "salt" : "..."
}