Search + K

Command Palette

Search for a command to run...

Sign In

Convert an organization member to outside collaborator

PUT /orgs/{org}/outside_collaborators/{username}
Copy endpoint
https://api.github.com

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

path Path Parameters

Name Type
org required

The organization name. The name is not case sensitive.

string
username required

The handle for the GitHub user account.

string

Request Body

application/json
{ async?: boolean; }

Responses

202 application/json

User is getting converted asynchronously

{}
204

User was converted

unknown

Client Errors

403

Forbidden if user is the last owner of the organization, not a member of the organization, or if the enterprise enforces a policy for inviting outside collaborators. For more information, see "Enforcing repository management policies in your enterprise."

unknown
404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}