Add User to Team

Add a user to a team in GitHub.

Note

To use this action card, you must be the owner of the organization.

Options

Field Definition Type Required
Organization Organizations in GitHub. Dropdown TRUE

Input

Field Definition Type Required
Username Username for the user; can be an login or username. String TRUE
Role Role of the user; options are Member or Team Maintainer. Dropdown FALSE
Team List of teams to which the user can be added. Dropdown FALSE

Output

Field Definition Type
Status Code Result of the operation. The HTTP status code is returned by the connector and 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 was not processed because the necessary permissions were missing.

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

Number

Related topics

GitHub connector

Elements of Workflows

GitHub API documentation