REST API endpoints for outside collaborators

Use the REST API to manage outside collaborators.

Note

Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.

List outside collaborators for an organization

GET /orgs/{org}/outside_collaborators

List all users who are outside collaborators of an organization.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/orgs/ORG/outside_collaborators

Response schema (Status: 200):

Array of Simple User:

Convert an organization member to outside collaborator

PUT /orgs/{org}/outside_collaborators/{username}

When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "Converting an organization member to an outside collaborator". Converting an organization member to an outside collaborator may be restricted by enterprise administrators. For more information, see "Enforcing repository management policies in your enterprise."

Parameters

Headers

Path and query parameters

Body parameters

HTTP response status codes

Code examples

Status code 202, asynchronous request

Request:

curl -L \
  -X PUT \
  https://api.github.com/orgs/ORG/outside_collaborators/USERNAME \
  -d '{
  "async": true
}'

Response schema (Status: 202):

Status code 204, synchronous request

Request:

curl -L \
  -X PUT \
  https://api.github.com/orgs/ORG/outside_collaborators/USERNAME

Response schema (Status: 204):

Remove outside collaborator from an organization

DELETE /orgs/{org}/outside_collaborators/{username}

Removing a user from this list will remove them from all the organization's repositories.

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X DELETE \
  https://api.github.com/orgs/ORG/outside_collaborators/USERNAME

Response schema (Status: 204):