Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node operation removes a specified user from a team within an organization on a Gitea server. It is useful for managing team memberships programmatically, such as automating the removal of users who no longer need access to certain repositories or projects. For example, when an employee leaves a project, this node can be used to revoke their team membership efficiently.

Properties

Name Meaning
Id The numeric ID of the team from which the user will be removed.
Username The username of the user to remove from the team.

Output

The node outputs JSON data representing the result of the removal operation. Typically, this would include confirmation of success or details about the action taken. There is no indication that binary data is output by this node.

Dependencies

  • Requires connection to a Gitea instance via its API.
  • Needs an API authentication token credential configured in n8n to authorize requests.
  • The base URL for the Gitea API must be provided in the credentials configuration.

Troubleshooting

  • Common issues:

    • Invalid team ID or username may cause the removal to fail.
    • Insufficient permissions with the provided API token can prevent user removal.
    • Network connectivity problems to the Gitea server will block the operation.
  • Error messages and resolutions:

    • "User not found in team": Verify the username and team ID are correct.
    • "Unauthorized" or "Forbidden": Check that the API token has sufficient rights to manage team members.
    • "Team not found": Confirm the team ID exists in the organization.

Links and References

Discussion