{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-user-info-schema.json",
  "title": "UserInfo Response",
  "description": "Represents a successful response to a Get User Info operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-authentication-openapi.yml#/components/schemas/UserInfo",
  "type": "object",
  "x-stoplight": {
    "id": "76f4f5a6324c0"
  },
  "properties": {
    "sub": {
      "type": "string",
      "description": "The ID by which APS uniquely identifies the user."
    },
    "name": {
      "type": "string",
      "description": "The full name of the user."
    },
    "given_name": {
      "type": "string",
      "description": "The given name or first name of the user."
    },
    "family_name": {
      "type": "string",
      "description": "The surname or last name of the user."
    },
    "preferred_username": {
      "type": "string",
      "description": "The username by which the user prefers to be addressed."
    },
    "email": {
      "type": "string",
      "description": "The email address by which the user prefers to be contacted."
    },
    "email_verified": {
      "type": "boolean",
      "description": "``true`` : The user's preferred email address is verified.\n\n``false``: The user's preferred email address is not verified.\n"
    },
    "profile": {
      "type": "string",
      "description": "The URL of the profile page of the user."
    },
    "picture": {
      "type": "string",
      "description": "The URL of the profile picture of the user."
    },
    "locale": {
      "type": "string",
      "description": "The preferred language settings of the user. This setting is typically specified as a combination of the ISO 639 language code in lower case, and the ISO 3166 country code in upper case, separated by a dash character. For example ``en-US``."
    },
    "updated_at": {
      "type": "integer",
      "description": "The time the user's information was most recently updated, represented as a Unix timestamp."
    },
    "is_twofa_enabled": {
      "type": "boolean",
      "description": "``true``: Two-factor authentication is enabled for this user.\n\n``false``: Two-factor authentication is not enabled for this user.\n"
    },
    "country_code": {
      "type": "string",
      "description": "The ISO 3166 country code that was assigned to the user when their profile was created."
    },
    "address": {
      "type": "object",
      "description": "A JSON object containing information of the postal address of the user.",
      "properties": {
        "street_address": {
          "type": "string",
          "description": "The street address part of the address. Can contain the house number, street name, postal code, and so on.  New lines are represented as ``\\n``."
        },
        "locality": {
          "type": "string",
          "description": "The city or locality part of the address."
        },
        "region": {
          "type": "string",
          "description": "The state, province, prefecture, or region part of the address."
        },
        "postal_code": {
          "type": "string",
          "description": "The zip code or postal code part of the address."
        },
        "country": {
          "type": "string",
          "description": "The country name part of the address."
        }
      }
    },
    "phone_number": {
      "type": "string",
      "description": "The phone number by which the user prefers to be contacted."
    },
    "phone_number_verified": {
      "type": "boolean",
      "description": "``true`` : The phone number is verified.\n\n``false`` : The phone number is not verified.\n"
    },
    "ldap_enabled": {
      "type": "boolean",
      "description": "``true`` :  Single sign-on using Lightweight Directory Access Protocol (LDAP) is enabled for this user.\n\n``false`` : LDAP is not enabled for this user.\n"
    },
    "ldap_domain": {
      "type": "string",
      "description": "The domain name used by the LDAP server for user authentication. ``null``, if ``ldap_enabled`` is ``false``."
    },
    "job_title": {
      "type": "string",
      "description": "The job title of the user as specified in the user's profile."
    },
    "industry": {
      "type": "string",
      "description": "The industry the user works in, as specified in the user's profile."
    },
    "industry_code": {
      "type": "string",
      "description": "A code that corresponds to the industry."
    },
    "about_me": {
      "type": "string",
      "description": "A short description written by the user to introduce themselves, as specified in the user's profile."
    },
    "language": {
      "type": "string",
      "description": "The ISO 639 language code of the preferred language of the user."
    },
    "company": {
      "type": "string",
      "description": "The company that the user works for, as specified in the user's profile."
    },
    "created_date": {
      "type": "string",
      "description": "The time the user profile was created, represented as a Unix timestamp."
    },
    "last_login_date": {
      "type": "string",
      "description": "The time the user most recently signed-in to APS successfully, represented as a Unix timestamp."
    },
    "eidm_guid": {
      "type": "string",
      "description": "An ID to uniquely identify the user. For most users this will be the same as ``sub``. However, for users profiles created on the now retired EIDM system ``eidm_guid`` will be different from ``sub``."
    },
    "opt_in": {
      "type": "boolean",
      "description": "``true`` : The user has agreed to receive marketing information.\n\n``false``: The user does not want to receive marketing information.\n"
    },
    "social_userinfo_list": {
      "type": "array",
      "description": "An array of objects, where each object represents a social media account that can be used to verify the user's identity.",
      "items": {
        "type": "object",
        "properties": {
          "socialUserId": {
            "type": "string",
            "description": "The ID of the user within the social media platform."
          },
          "providerId": {
            "type": "string",
            "description": "The ID of the social media platform."
          },
          "providerName": {
            "type": "string",
            "description": "The name of the social media platform."
          }
        }
      }
    },
    "twofa_type": {
      "type": "string",
      "description": "The type of two-factor authentication enabled for the user. Possible values: Phone, Email, Authenticator."
    },
    "contact_mode": {
      "type": "string",
      "description": "The mode of contact for two-factor authentication. Possible values: SMS, Email, Authenticator."
    },
    "user_source_type": {
      "type": "string",
      "description": "The source type of the user where the value indicates how the user was created. Possible values: Identity, EIDM, Rest API, Ldap/Enterprise, Test User, Provisioned, Ldap Provisioned."
    },
    "user_thumbnails": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "An array of key-value pairs for image URLs of available thumbnail sizes of the user's profile picture. The key is named ``sizeX<NUMBER>`` where ``<NUMBER>`` is the width and height of the thumbnail, in pixels. The corresponding value is the unique, secure, pre-signed & short-lived URL pointing to the thumbnail. For example, ``sizeX120`` would contain the URL for the 120x120 pixel thumbnail."
    }
  }
}