---
title: "Check if a user is a repository collaborator"
method: GET
path: "/repos/{owner}/{repo}/collaborators/{username}"
tags: ["repos"]
---

# Check if a user is a repository collaborator

`GET /repos/{owner}/{repo}/collaborators/{username}`

For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.

Team members will include the members of child teams.

The authenticated user must have push access to the repository to use this endpoint.

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

## Path parameters

- `owner` string, required
- `repo` string, required
- `username` string, required

## Response `204`

Response if user is a collaborator

## Other responses

- `404` — Not Found if user is not a collaborator

---

[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)
