---
title: "Closing down - List custom repository roles in an organization"
method: GET
path: "/organizations/{organization_id}/custom_roles"
tags: ["orgs"]
deprecated: true
---

# Closing down - List custom repository roles in an organization

`GET /organizations/{organization_id}/custom_roles`

> **Deprecated.**

> [!WARNING]
> **Closing down notice:** This operation is closing down and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest/rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.

List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."

The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.

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

## Path parameters

- `organization_id` string, required

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/c4eff58d97bf/schema)
