{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-workspace/json-schema/google-workspace-google-apps-cloudidentity-devices-v1-device-user-schema.json",
  "title": "GoogleAppsCloudidentityDevicesV1DeviceUser",
  "description": "Represents a user's use of a Device in the Cloud Identity Devices API. A DeviceUser is a resource representing a user's use of a Device",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-workspace-cloudidentity-devices-api-openapi.yml#/components/schemas/GoogleAppsCloudidentityDevicesV1DeviceUser",
  "type": "object",
  "properties": {
    "lastSyncTime": {
      "format": "google-datetime",
      "readOnly": true,
      "type": "string",
      "description": "Output only. Last time when user synced with policies."
    },
    "firstSyncTime": {
      "type": "string",
      "format": "google-datetime",
      "description": "Output only. Most recent time when user registered with this service.",
      "readOnly": true
    },
    "createTime": {
      "type": "string",
      "format": "google-datetime",
      "description": "When the user first signed in to the device"
    },
    "compromisedState": {
      "type": "string",
      "description": "Compromised State of the DeviceUser object",
      "enum": [
        "COMPROMISED_STATE_UNSPECIFIED",
        "COMPROMISED",
        "NOT_COMPROMISED"
      ]
    },
    "name": {
      "description": "Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the DeviceUser in format: `devices/{device}/deviceUsers/{device_user}`, where `device_user` uniquely identifies a user's use of a device.",
      "readOnly": true,
      "type": "string"
    },
    "userEmail": {
      "type": "string",
      "description": "Email address of the user registered on the device."
    },
    "languageCode": {
      "type": "string",
      "readOnly": true,
      "description": "Output only. Default locale used on device, in IETF BCP-47 format."
    },
    "userAgent": {
      "readOnly": true,
      "type": "string",
      "description": "Output only. User agent on the device for this specific user"
    },
    "managementState": {
      "enum": [
        "MANAGEMENT_STATE_UNSPECIFIED",
        "WIPING",
        "WIPED",
        "APPROVED",
        "BLOCKED",
        "PENDING_APPROVAL",
        "UNENROLLED"
      ],
      "description": "Output only. Management state of the user on the device.",
      "type": "string",
      "readOnly": true
    },
    "passwordState": {
      "enum": [
        "PASSWORD_STATE_UNSPECIFIED",
        "PASSWORD_SET",
        "PASSWORD_NOT_SET"
      ],
      "description": "Password state of the DeviceUser object",
      "type": "string"
    }
  }
}