GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows approving a member in a GitLab group by sending a PUT request to the GitLab API endpoint `/api/v4/groups/{id}/members/{member_id}/approve`. It is useful for managing group membership approvals programmatically, such as automating the approval process for new group members in GitLab.

Use Case Examples

  1. Automatically approve pending members in a GitLab group after certain conditions are met.
  2. Integrate GitLab group member approval into a CI/CD pipeline or administrative workflow.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but PUT is used for this operation.
Path Parameters Parameters required in the request path to identify the group and member.

Output

JSON

  • id - The ID of the approved group member.
  • username - The username of the approved member.
  • name - The full name of the approved member.
  • state - The state of the member after approval, typically 'active'.
  • access_level - The access level granted to the member in the group.
  • expires_at - The expiration date of the member's access, if any.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the group ID and member ID are correct and exist in the GitLab instance.
  • Verify that the API token used has sufficient permissions to approve group members.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Common error messages include 404 Not Found if the group or member does not exist, and 403 Forbidden if the API token lacks approval permissions.

Links

Discussion