{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/User",
  "title": "User",
  "type": "object",
  "description": "An IAM user in Oracle Cloud Infrastructure.",
  "properties": {
    "id": {
      "type": "string",
      "description": "The OCID of the user.",
      "example": "ocid1.user.oc1..abcdefg123456"
    },
    "compartmentId": {
      "type": "string",
      "description": "The OCID of the tenancy.",
      "example": "ocid1.resource.oc1.iad.abcdefg123456"
    },
    "name": {
      "type": "string",
      "description": "The name of the user.",
      "example": "jsmith@example.com"
    },
    "description": {
      "type": "string",
      "description": "The description of the user.",
      "example": "John Smith"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The email address.",
      "example": "jsmith@example.com"
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "CREATING",
        "ACTIVE",
        "INACTIVE",
        "DELETING",
        "DELETED"
      ],
      "example": "CREATING"
    },
    "isMfaActivated": {
      "type": "boolean",
      "description": "Whether MFA is activated.",
      "example": true
    },
    "timeCreated": {
      "type": "string",
      "format": "date-time",
      "example": "2026-04-18T10:30:00Z"
    }
  }
}