Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list the teams associated with a specific user. It is useful in scenarios where you need to retrieve and manage team memberships for users within a Gitea instance, such as automating access control, reporting on team structures, or integrating team data into other workflows.

For example, you might use this node to:

  • Fetch all teams a user belongs to in order to synchronize permissions across systems.
  • Generate reports on user-team associations for auditing purposes.
  • Trigger actions based on team membership changes.

Properties

Name Meaning
Page The page number of results to return (1-based). Used for paginating through large sets of teams.
Limit The number of results per page (page size). Controls how many teams are returned in one request.

Output

The node outputs JSON data representing the list of teams that the specified user belongs to. Each item in the output array corresponds to a team object as defined by the Gitea API, typically including details such as team ID, name, description, permission level, and related metadata.

If the API supports it, pagination information may also be included implicitly via the response headers or structure, but the main output is an array of team objects in JSON format.

Dependencies

  • Requires an active connection to a Gitea instance.
  • Needs an API key credential configured in n8n to authenticate requests against the Gitea API.
  • The base URL of the Gitea server must be provided in the credentials configuration.

Troubleshooting

  • Empty results: Ensure the user exists and has team memberships; verify correct user identification if applicable.
  • Authentication errors: Check that the API key credential is valid and has sufficient permissions to read user team data.
  • Pagination issues: If not all teams are returned, adjust the "Page" and "Limit" properties to navigate through result pages.
  • API connectivity: Verify network access to the Gitea server and that the base URL is correctly set in credentials.

Links and References

Discussion