---
title: "Set organization access for a self-hosted runner group in an enterprise"
method: PUT
path: "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"
tags: ["enterprise-admin"]
---

# Set organization access for a self-hosted runner group in an enterprise

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

Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.

OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required
- `runner_group_id` integer, required

## Request body

- object
  - `selected_organization_ids` integer[], required — List of organization IDs that can access the runner group.

## Response `204`

Response

---

[API](https://skmtc.net/github/apis/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
