{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam-identity-center/json-schema/amazon-iam-identity-center-describe-user-response-schema.json",
  "title": "DescribeUserResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-identity-center-aws-sso-identity-store-api-openapi.yml#/components/schemas/DescribeUserResponse",
  "type": "object",
  "properties": {
    "IdentityStoreId": {
      "type": "string",
      "description": "The globally unique identifier for the identity store."
    },
    "UserId": {
      "type": "string",
      "description": "The identifier for a user in the identity store."
    },
    "UserArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the user in the identity store. For example, arn:aws:identitystore:::user/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111."
    },
    "Revision": {
      "type": "string",
      "description": "The current revision of the user in the identity store. This value changes each time the user is modified."
    },
    "UserName": {
      "type": "string",
      "description": "A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store."
    },
    "ExternalIds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExternalId"
      },
      "description": "A list of ExternalId objects that contains the identifiers issued to this resource by an external identity provider."
    },
    "Name": {
      "$ref": "#/$defs/Name"
    },
    "DisplayName": {
      "type": "string",
      "description": "The display name of the user."
    },
    "NickName": {
      "type": "string",
      "description": "An alternative descriptive name for the user."
    },
    "ProfileUrl": {
      "type": "string",
      "description": "A URL link for the user's profile."
    },
    "Emails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Email"
      },
      "description": "The email address of the user."
    },
    "Addresses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Address"
      },
      "description": "The physical address of the user."
    },
    "PhoneNumbers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PhoneNumber"
      },
      "description": "A list of PhoneNumber objects associated with a user."
    },
    "UserType": {
      "type": "string",
      "description": "A string indicating the type of user."
    },
    "Title": {
      "type": "string",
      "description": "A string containing the title of the user."
    },
    "PreferredLanguage": {
      "type": "string",
      "description": "The preferred language of the user."
    },
    "Locale": {
      "type": "string",
      "description": "A string containing the geographical region or location of the user."
    },
    "Timezone": {
      "type": "string",
      "description": "The time zone for a user."
    },
    "UserStatus": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "The current status of the user account."
    },
    "Photos": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Photo"
      },
      "description": "A list of photos associated with the user. Returns up to 3 photos with their associated metadata including type, display name, and primary designation."
    },
    "Website": {
      "type": "string",
      "description": "The user's personal website or blog URL. Returns the stored website information for the user."
    },
    "Birthdate": {
      "type": "string",
      "description": "The user's birthdate in YYYY-MM-DD format. This field returns the stored birthdate information for the user."
    },
    "Roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Role"
      },
      "description": "The roles of the user."
    },
    "CreatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the user was created."
    },
    "CreatedBy": {
      "type": "string",
      "description": "The identifier of the user or system that created the user."
    },
    "UpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the user was last updated."
    },
    "UpdatedBy": {
      "type": "string",
      "description": "The identifier of the user or system that last updated the user."
    },
    "Extensions": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      },
      "description": "A map of explicitly requested attribute extensions associated with the user. Not populated if the user has no requested extensions."
    }
  },
  "required": [
    "IdentityStoreId",
    "UserId",
    "UserArn",
    "Revision"
  ],
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "StreetAddress": {
          "type": "string",
          "description": "The street of the address."
        },
        "Locality": {
          "type": "string",
          "description": "A string of the address locality."
        },
        "Region": {
          "type": "string",
          "description": "The region of the address."
        },
        "PostalCode": {
          "type": "string",
          "description": "The postal code of the address."
        },
        "Country": {
          "type": "string",
          "description": "The country of the address."
        },
        "Formatted": {
          "type": "string",
          "description": "A string containing a formatted version of the address for display."
        },
        "Type": {
          "type": "string",
          "description": "A string representing the type of address. For example, \"Home.\""
        },
        "Primary": {
          "type": "boolean",
          "description": "A Boolean value representing whether this is the primary address for the associated resource."
        }
      }
    },
    "Email": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "A string containing an email address. For example, \"johndoe@amazon.com.\""
        },
        "Type": {
          "type": "string",
          "description": "A string representing the type of address. For example, \"Work.\""
        },
        "Primary": {
          "type": "boolean",
          "description": "A Boolean value representing whether this is the primary email address for the associated resource."
        }
      }
    },
    "ExternalId": {
      "type": "object",
      "properties": {
        "Issuer": {
          "type": "string",
          "description": "The issuer for an external identifier."
        },
        "Id": {
          "type": "string",
          "description": "The identifier issued to this resource by an external identity provider."
        }
      },
      "required": [
        "Issuer",
        "Id"
      ]
    },
    "Name": {
      "type": "object",
      "properties": {
        "Formatted": {
          "type": "string",
          "description": "A string containing a formatted version of the name for display."
        },
        "FamilyName": {
          "type": "string",
          "description": "The family name of the user."
        },
        "GivenName": {
          "type": "string",
          "description": "The given name of the user."
        },
        "MiddleName": {
          "type": "string",
          "description": "The middle name of the user."
        },
        "HonorificPrefix": {
          "type": "string",
          "description": "The honorific prefix of the user. For example, \"Dr.\""
        },
        "HonorificSuffix": {
          "type": "string",
          "description": "The honorific suffix of the user. For example, \"M.D.\""
        }
      }
    },
    "PhoneNumber": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "A string containing a phone number. For example, \"8675309\" or \"+1 (800) 123-4567\"."
        },
        "Type": {
          "type": "string",
          "description": "A string representing the type of a phone number. For example, \"Mobile.\""
        },
        "Primary": {
          "type": "boolean",
          "description": "A Boolean value representing whether this is the primary phone number for the associated resource."
        }
      }
    },
    "Photo": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "The photo data or URL. Supported formats include jpg, jpeg, png, and gif. This field is required for all photo entries."
        },
        "Type": {
          "type": "string",
          "description": "The type of photo. This field is optional and can be used to categorize different types of photos."
        },
        "Display": {
          "type": "string",
          "description": "A human-readable description of the photo for display purposes. This optional field provides context about the photo."
        },
        "Primary": {
          "type": "boolean",
          "description": "Specifies whether this is the user's primary photo. Default value is false. Only one photo can be designated as primary per user."
        }
      },
      "required": [
        "Value"
      ]
    },
    "Role": {
      "type": "object",
      "properties": {
        "Value": {
          "type": "string",
          "description": "A string containing a role name. For example, \"Researcher.\""
        },
        "Type": {
          "type": "string",
          "description": "A string representing the type of role. For example, \"Work.\""
        },
        "Primary": {
          "type": "boolean",
          "description": "A Boolean value representing whether this is the primary role for the associated resource."
        }
      }
    }
  }
}