Skip to main content

org_details

Creates, updates, deletes, gets or lists an org_details resource.

Overview

Nameorg_details
TypeResource
Idgithub.copilot.org_details

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
clistringThe organization policy for allowing or disallowing Copilot CLI. (enabled, disabled, unconfigured)
ide_chatstringThe organization policy for allowing or disallowing Copilot Chat in the IDE. (enabled, disabled, unconfigured)
plan_typestringThe Copilot plan of the organization, or the parent enterprise, when applicable. (business, enterprise)
platform_chatstringThe organization policy for allowing or disallowing Copilot features on GitHub.com. (enabled, disabled, unconfigured)
public_code_suggestionsstringThe organization policy for allowing or blocking suggestions matching public code (duplication detection filter). (allow, block, unconfigured)
seat_breakdownobjectThe breakdown of Copilot Business seats for the organization. (title: Copilot Seat Breakdown)
seat_management_settingstringThe mode of assigning new seats. (assign_all, assign_selected, disabled, unconfigured)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_copilot_organization_detailsselectorg> [!NOTE]
> This endpoint is in public preview and is subject to change.

Gets information about an organization's Copilot subscription, including seat breakdown
and feature policies. To configure these settings, go to your organization's settings on GitHub.com.
For more information, see "Managing policies for Copilot in your organization."

Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.

OAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or read:org scopes to use this endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
orgstringThe organization name. The name is not case sensitive.

SELECT examples

> [!NOTE]
> This endpoint is in public preview and is subject to change.

Gets information about an organization's Copilot subscription, including seat breakdown
and feature policies. To configure these settings, go to your organization's settings on GitHub.com.
For more information, see "Managing policies for Copilot in your organization."

Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.

OAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or read:org scopes to use this endpoint.

SELECT
cli,
ide_chat,
plan_type,
platform_chat,
public_code_suggestions,
seat_breakdown,
seat_management_setting
FROM github.copilot.org_details
WHERE org = '{{ org }}' -- required
;