---
title: "Get Copilot cloud agent permissions for an organization"
method: GET
path: "/orgs/{org}/copilot/coding-agent/permissions"
tags: ["copilot"]
---

# Get Copilot cloud agent permissions for an organization

`GET /orgs/{org}/copilot/coding-agent/permissions`

> [!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 cloud agent.

Organization owners can configure whether Copilot cloud 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.

## Path parameters

- `org` string, required

## Response `200`

Response

- object
  - `enabled_repositories` 'all' | 'selected' | 'none', required — The policy for which repositories can use Copilot cloud agent. Can be one of `all`, `selected`, or `none`.
  - `selected_repositories_url` string — The URL for the selected repositories endpoint. Only present when `enabled_repositories` is `selected`.

## Other responses

- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/github-v3-rest-api.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api/versions/a367f7028301/schema)
