Add User to Repository

Add a user to a repository in GitHub.

Input

Field Definition Type Required

User

Username

Username for the user. This can be a sign-in account or a username.

Text

TRUE

Permission

Permissions available to team members; options are Pull, Pull and Push, or Pull, Push and Administer.

Dropdown

TRUE

Repository

Owner

Username of the repository owner; if the repository is personal, then enter a username; if the repository is organization-owned, then enter the name of the organization.

Text

TRUE

Name

Name of the user.

Text

TRUE

If a user already has access to the repository but is not a member (for example, an organization owner), they will be added as a collaborator in the repository.

Output

Field Definition Type

Invitation ID

Invitation_id_parameter value for the user invitation.

Number

Invitee

Username of the invited user.

Text

Inviter

Username of the creator of the invitation.

Text

Permissions

Permissions available to team members.

Text

Created At

Date and time when the object was created.

Date & Time

Invitation URL

URL of the invitation for the new user.

Text

Status Code

Result of the operation. The connector returns an HTTP status code that indicates whether the action taken by the card succeeded or failed. For example:

  • A 201 Created status code indicates success where a new resource was created.
  • A 403 Forbidden error indicates that the HTTP request wasn't processed because the necessary permissions were missing.

For a full list of possible status codes, see HTTP status codes.

Number

Related topics

GitHub connector

Workflow elements

GitHub API documentation