{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-get-user-profile-output-schema.json",
  "title": "GetUserProfileOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-user-profiles-api-openapi.yml#/components/schemas/GetUserProfileOutput",
  "type": "object",
  "properties": {
    "domainId": {
      "type": "string",
      "description": "the identifier of the Amazon DataZone domain of which you want to get the user profile."
    },
    "id": {
      "type": "string",
      "description": "The identifier of the user profile."
    },
    "type": {
      "type": "string",
      "enum": [
        "IAM",
        "SSO"
      ],
      "description": "The type of the user profile."
    },
    "status": {
      "type": "string",
      "enum": [
        "ASSIGNED",
        "NOT_ASSIGNED",
        "ACTIVATED",
        "DEACTIVATED"
      ],
      "description": "The status of the user profile."
    },
    "details": {
      "$ref": "#/$defs/UserProfileDetails"
    }
  },
  "$defs": {
    "IamUserProfileDetails": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The ARN of the IAM user."
        },
        "principalId": {
          "type": "string",
          "description": "The principal ID as part of the IAM user profile details."
        },
        "sessionName": {
          "type": "string",
          "description": "The session name for IAM role sessions."
        },
        "groupProfileId": {
          "type": "string",
          "description": "The identifier of the group profile associated with the IAM user profile. This links the user to a specific group profile within the Amazon DataZone domain."
        }
      }
    },
    "SsoUserProfileDetails": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "The username as part of the SSO user profile detail."
        },
        "firstName": {
          "type": "string",
          "description": "The first name as part of the SSO user profile detail."
        },
        "lastName": {
          "type": "string",
          "description": "The last name as part of the SSO user profile detail."
        }
      }
    },
    "UserProfileDetails": {
      "type": "object",
      "properties": {
        "iam": {
          "$ref": "#/$defs/IamUserProfileDetails"
        },
        "sso": {
          "$ref": "#/$defs/SsoUserProfileDetails"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}