Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to manage organization members. Specifically, the "Org Delete Member" operation removes a user from a specified organization in Gitea. This is useful for automating membership management tasks such as revoking access when a team member leaves or changes roles.

Practical examples:

  • Automatically removing users from an organization after their contract ends.
  • Cleaning up organization memberships based on external HR system triggers.
  • Managing access control by syncing organization members with other systems.

Properties

Name Meaning
Org The name of the organization from which to remove the member.
Username The username of the user to be removed from the organization.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will confirm whether the removal was successful or provide error details if it failed. There is no binary output.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • Needs the base URL of the Gitea server configured in credentials.
  • Depends on the Gitea REST API being accessible and the authenticated user having permission to manage organization members.

Troubleshooting

  • Common issues:

    • Invalid organization name or username will cause errors.
    • Insufficient permissions to remove members may result in authorization errors.
    • Network connectivity problems can prevent API calls.
  • Error messages:

    • "Not Found" indicates the organization or user does not exist.
    • "Unauthorized" or "Forbidden" suggests missing or insufficient API credentials.
    • "Bad Request" may indicate malformed input parameters.
  • Resolutions:

    • Verify organization and username spelling.
    • Ensure API credentials have appropriate scopes/permissions.
    • Check network connectivity and Gitea server status.

Links and References

Discussion