Skip to main content

org_coding_agent_permissions

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

Overview

Nameorg_coding_agent_permissions
TypeResource
Idgithub.copilot.org_coding_agent_permissions

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
enabled_repositoriesstringThe policy for which repositories can use Copilot coding agent. Can be one of all, selected, or none. (all, selected, none)
selected_repositories_urlstringThe URL for the selected repositories endpoint. Only present when enabled_repositories is selected.

Methods

The following methods are available for this resource:

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

Gets information about which repositories in an organization have been enabled
or disabled for the Copilot coding agent.

Organization owners can configure whether Copilot coding agent is enabled for
all repositories, selected repositories, or no repositories owned by organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.
set_copilot_coding_agent_permissions_organizationreplaceorg, enabled_repositories> [!NOTE]
> This endpoint is in public preview and is subject to change.

Sets the policy for which repositories in an organization can use Copilot coding agent.

Organization owners can configure whether Copilot coding agent is enabled for
all repositories, selected repositories, or no repositories owned by the organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope 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 which repositories in an organization have been enabled
or disabled for the Copilot coding agent.

Organization owners can configure whether Copilot coding agent is enabled for
all repositories, selected repositories, or no repositories owned by organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

SELECT
enabled_repositories,
selected_repositories_url
FROM github.copilot.org_coding_agent_permissions
WHERE org = '{{ org }}' -- required
;

REPLACE examples

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

Sets the policy for which repositories in an organization can use Copilot coding agent.

Organization owners can configure whether Copilot coding agent is enabled for
all repositories, selected repositories, or no repositories owned by the organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.

REPLACE github.copilot.org_coding_agent_permissions
SET
enabled_repositories = '{{ enabled_repositories }}'
WHERE
org = '{{ org }}' --required
AND enabled_repositories = '{{ enabled_repositories }}' --required;