Missing API support: per-user premium requests usage for enterprise-owned orgs #184208
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Right now, there is no supported way to get per-user Copilot premium request usage for an organization via the REST API when that organization belongs to an enterprise. Even though the REST API shows a user query parameter, GitHub blocks its use for enterprise-owned organizations unless the request is made at the enterprise level by an enterprise owner or billing manager. Organization-level admins and GitHub Apps cannot use this filter for enterprise orgs. So what you are seeing is expected behavior: The API technically supports the user filter. But GitHub disables it for enterprise-owned organizations for permission and data-visibility reasons. This limitation is enforced by the platform, even though it is not clearly documented on the REST endpoint page. Because of this: You cannot retrieve per-user usage programmatically for enterprise orgs today. The only supported way to see per-user usage is through the enterprise UI (or CSV download), not through the org API. In short: this is not a bug in your app or your permissions — it’s a missing API capability / product limitation at the moment. If you need this data programmatically, the only option today is to request it at the enterprise level (if GitHub exposes it in the future) or raise a feature request with GitHub. |
Beta Was this translation helpful? Give feedback.

Right now, there is no supported way to get per-user Copilot premium request usage for an organization via the REST API when that organization belongs to an enterprise.
Even though the REST API shows a user query parameter, GitHub blocks its use for enterprise-owned organizations unless the request is made at the enterprise level by an enterprise owner or billing manager. Organization-level admins and GitHub Apps cannot use this filter for enterprise orgs.
So what you are seeing is expected behavior:
The API technically supports the user filter.
But GitHub disables it for enterprise-owned organizations for permission and data-visibility reasons.
This limitation is enforced by the platform…