# List organization access to a self-hosted runner group in an enterprise

From **GitHub v3 REST API**.

`GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations`

Lists the organizations with access to a self-hosted runner group.

You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.

## Parameters

### `enterprise`

- Location: path
- Required: true
- Type: `string`

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

### `runner_group_id`

- Location: path
- Required: true
- Type: `integer`

Unique identifier of the self-hosted runner group.

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

### `application/json`

- Type: `object`

```json
{
  "organizations": [
    {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "description": "A great organization",
      "events_url": "https://api.github.com/orgs/octo-org/events",
      "hooks_url": "https://api.github.com/orgs/octo-org/hooks",
      "id": 161335,
      "issues_url": "https://api.github.com/orgs/octo-org/issues",
      "login": "octocat",
      "members_url": "https://api.github.com/orgs/octo-org/members{/member}",
      "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
      "public_members_url": "https://api.github.com/orgs/octo-org/public_members{/member}",
      "repos_url": "https://api.github.com/orgs/octo-org/repos",
      "url": "https://api.github.com/orgs/octo-org"
    }
  ],
  "total_count": 1
}
```

```json
{"properties":{"organizations":{"items":{"$ref":"#/components/schemas/organization-simple"},"type":"array"},"total_count":{"type":"number"}},"required":["total_count","organizations"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations
```
