{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/github/main/json-schema/github-external-group-schema.json",
  "title": "ExternalGroup",
  "description": "Information about an external group's usage and its members",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/github-teams-api-openapi.yml#/components/schemas/external-group",
  "type": "object",
  "required": [
    "group_id",
    "group_name",
    "teams",
    "members"
  ],
  "properties": {
    "group_id": {
      "description": "The internal ID of the group",
      "type": "integer"
    },
    "group_name": {
      "description": "The display name for the group",
      "type": "string"
    },
    "updated_at": {
      "description": "The date when the group was last updated_at",
      "type": "string"
    },
    "teams": {
      "description": "An array of teams linked to this group",
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "team_id",
          "team_name"
        ],
        "properties": {
          "team_id": {
            "description": "The id for a team",
            "type": "integer"
          },
          "team_name": {
            "description": "The name of the team",
            "type": "string"
          }
        }
      }
    },
    "members": {
      "description": "An array of external members linked to this group",
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "member_id",
          "member_login",
          "member_name",
          "member_email"
        ],
        "properties": {
          "member_id": {
            "description": "The internal user ID of the identity",
            "type": "integer"
          },
          "member_login": {
            "description": "The handle/login for the user",
            "type": "string"
          },
          "member_name": {
            "description": "The user display name/profile name",
            "type": "string"
          },
          "member_email": {
            "description": "An email attached to a user",
            "type": "string"
          }
        }
      }
    }
  }
}