Skip to main content

collaborators

Overview

Namecollaborators
TypeResource
Idgithub.projects.collaborators

Fields

NameDatatypeDescription
permissionstring
userobjectA GitHub user.

Methods

NameAccessible byRequired ParamsDescription
get_permission_for_userSELECTproject_id, usernameReturns the collaborator's permission level for an organization project. Possible values for the permission key: admin, write, read, none. You must be an organization owner or a project admin to review a user's permission level.
list_collaboratorsSELECTproject_idLists the collaborators for an organization project. For a project, 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. You must be an organization owner or a project admin to list collaborators.
remove_collaboratorDELETEproject_id, usernameRemoves a collaborator from an organization project. You must be an organization owner or a project admin to remove a collaborator.
add_collaboratorEXECproject_id, usernameAdds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project admin to add a collaborator.