{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-workspace/json-schema/google-workspace-user-invitation-schema.json",
  "title": "UserInvitation",
  "description": "The `UserInvitation` resource represents an email that can be sent to an unmanaged user account inviting them to join the customer's Google Workspace or Cloud Identity account. An unmanaged account shares an email address domain with the Google Workspace or Cloud Identity account but is not managed by it yet. If the user accepts the `UserInvitation`, the user account will become managed.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-workspace-cloudidentity-customers-api-openapi.yml#/components/schemas/UserInvitation",
  "properties": {
    "name": {
      "description": "Shall be of the form `customers/{customer}/userinvitations/{user_email_address}`.",
      "type": "string"
    },
    "state": {
      "description": "State of the `UserInvitation`.",
      "type": "string",
      "enum": [
        "STATE_UNSPECIFIED",
        "NOT_YET_SENT",
        "INVITED",
        "ACCEPTED",
        "DECLINED"
      ]
    },
    "mailsSentCount": {
      "format": "int64",
      "type": "string",
      "description": "Number of invitation emails sent to the user."
    },
    "updateTime": {
      "format": "google-datetime",
      "type": "string",
      "description": "Time when the `UserInvitation` was last updated."
    }
  },
  "type": "object"
}