---
topic: dev-practices
author: Crashtech Editorial
published: Nov 27, 2026 · read: 3 min
---

GitHub’s New user_id Column Can Break Usage Exports on December 1

GitHub adds user_id beside username in several usage reports on Dec 1, shifting later columns and breaking position-based export parsers.

– –
A paper usage report gains a new column while an engineer replaces a fixed-position ruler with header-aware labels.
Conceptual editorial illustration, not a product screenshot.

A CSV can be valid and still break a report pipeline. Starting December 1, GitHub says usage reports that include a username column will add user_id beside it. Every later column shifts one position. A script that reads fields by fixed index may continue running while silently assigning the wrong value to a cost center or usage metric. [1]

The change applies to GitHub Enterprise Cloud account types and standalone organizations on GitHub Team. It affects the detailed usage report, AI usage report and premium request usage report, including exports created with the GitHub REST API. The summarized usage report is unchanged. GitHub’s instruction is practical: update scripts that read these reports by column position so they use header names before rollout. [1]

Why a stable file format can still shift

Adding a field is usually backward-compatible for software that maps names to values. It is not necessarily compatible with code that assumes column 0 means date, column 1 means username, and column 2 means product. With a new field inserted next to username, all later positional assumptions can become wrong at once.

This failure can be quiet. A parser might not throw an exception; it may read the AI-credit amount as a product identifier, or route a username into a different report field. That can affect dashboards, chargeback calculations, reconciliations or scheduled exports. Treat the announcement as a schema migration even though the file remains a CSV.

user_id adds more than a stable identifier. GitHub says it contains the ID of the account that generated the usage, including bot accounts. It is empty when usage is not tied to an account. It also helps distinguish usage from separate deleted accounts that previously shared an empty username, and makes it possible to follow an account after a username change. [1]

There is one numerical wrinkle: because separate deleted-account rows will now be shown separately, and amounts are rounded per row, summing the visible rows can differ slightly in the final decimal places even though the amounts are calculated the same way. This is a reporting representation change, not a change to the underlying usage calculation. [1]

Audit downstream consumers now

Search for code that parses downloaded reports, API export responses or stored CSV files. Look for numeric offsets, hard-coded header positions, SQL imports that rely on column order, spreadsheet formulas, and transformation jobs that rename columns by index. A quick defensive pattern is to read the header row into a name-to-index map, then address each value by its documented header. Reject a missing required header with a clear error rather than continuing with shifted fields.

Test with two fixtures: one containing the current columns and another with the new identifier inserted in its announced position. The same semantic fields should produce the same normalized output in both. Keep unknown columns where possible so additive changes do not force an urgent parser release every time GitHub adds metadata. This is a familiar schema-evolution technique; see our expand-and-contract migration guide for the broader pattern.

If your data warehouse stores usage rows, decide whether user_id should become the durable join key while username remains a display value. Preserve empty identifiers as unknown rather than inventing a shared account, and keep the report’s source timestamp so users can distinguish re-exported data from new usage.

The deadline is near but the fix is modest: parse by field name, test the new schema shape, and validate that totals and joins still make sense. Doing that before December 1 turns a surprise column insertion into a routine, observable data-contract update.

Advertisement

Frequently asked questions

Which GitHub usage reports change on December 1?

Detailed usage, AI usage and premium request usage reports that include username gain the new user_id field; the summarized usage report is unchanged.

What is the safest way to parse the CSV?

Map columns by their header names, not their position, and fail clearly if a required header is missing.

Sources & further reading

/* Comments */