{
  "$id": "schema.json",
  "type": "object",
  "schema": "http://json-schema.org/draft-07/schema#",
  "translate": true,
  "dynamicfields": true,
  "properties": {
    "ph_request_type": {
      "type": "string",
      "description": "type of request (internal to adapter)",
      "default": "usersList",
      "enum": [
        "usersList",
        "usersCreate",
        "usersRead",
        "usersUpdate",
        "usersPartialUpdate",
        "usersDelete",
        "usersAddAccessibleTenants",
        "usersAddRoles",
        "usersAddUsergroups",
        "usersContextAccessibleTenants",
        "usersRemoveAccessibleTenants",
        "usersRemoveRoles",
        "usersRemoveUsergroups",
        "usersResetPassword",
        "usersSetPassword"
      ],
      "external_name": "ph_request_type"
    },
    "currentLoggedIn": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "current_logged_in"
    },
    "currentWithConcurrentSessionCountGreater": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "current_with_concurrent_session_count_greater"
    },
    "isActive": {
      "type": "boolean",
      "description": "Designates whether this user should be treated as active. Unselect this instead of deleting accounts.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_active"
    },
    "isInternal": {
      "type": "boolean",
      "description": "Internal User",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_internal"
    },
    "isLocked": {
      "type": "boolean",
      "description": "Designates whether this user is locked from failed login attempts",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_locked"
    },
    "isStaff": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_staff"
    },
    "isDormant": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_dormant"
    },
    "isExpired": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_expired"
    },
    "emailStartswith": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "email__startswith"
    },
    "emailContains": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "email__contains"
    },
    "firstName": {
      "type": "string",
      "description": "user&#39;s first name",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "first_name"
    },
    "firstNameStartswith": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "first_name__startswith"
    },
    "firstNameContains": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "first_name__contains"
    },
    "lastName": {
      "type": "string",
      "description": "user&#39;s last name",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "last_name"
    },
    "lastNameStartswith": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "last_name__startswith"
    },
    "lastNameContains": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "last_name__contains"
    },
    "usernameStartswith": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "username__startswith"
    },
    "usernameContains": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "username__contains"
    },
    "clientInactivityTime": {
      "type": "number",
      "description": "timeout in seconds of inactivity",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "client_inactivity_time"
    },
    "tokenExpirationTime": {
      "type": "number",
      "description": "token expires in timeout seconds from created time",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "token_expiration_time"
    },
    "dormancyDays": {
      "type": "number",
      "description": "number of days before an account can become dormant",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "dormancy_days"
    },
    "accessibleTenants": {
      "type": "string",
      "description": "list of tenant uuids",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "accessible_tenants"
    },
    "passwordChangeRequired": {
      "type": "boolean",
      "description": "Password change required",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "password_change_required"
    },
    "concurrentSessionMax": {
      "type": "number",
      "description": "The maximum number of concurrent sessions. (0=infinity)",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "concurrent_session_max"
    },
    "isVerboseLogging": {
      "type": "boolean",
      "description": "User permission for generating audit logs",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "is_verbose_logging"
    },
    "unlockTime": {
      "type": "string",
      "description": "Time when this user was locked.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "unlock_time"
    },
    "initDormancyTime": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "init_dormancy_time"
    },
    "lastLoginDetailUuid": {
      "type": "string",
      "description": "",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "last_login_detail_uuid"
    },
    "failedLoginAttempts": {
      "type": "number",
      "description": "Failed login attempts since last successful attempt",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "failed_login_attempts"
    },
    "passwordExpirationDays": {
      "type": "number",
      "description": "Number of days before an password for the account expires.",
      "parse": false,
      "encode": false,
      "encrypt": {
        "type": "AES",
        "key": ""
      },
      "external_name": "password_expiration_days"
    }
  },
  "definitions": {}
}