GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a member of a GitLab group by sending a PUT request to the GitLab API endpoint `/api/v4/groups/{id}/members/{user_id}`. It is useful for managing group membership details such as access levels or expiration dates for a specific user within a group. For example, it can be used to change a user's role in a project group or update their membership status programmatically.

Use Case Examples

  1. Updating a user's access level in a GitLab group.
  2. Modifying membership expiration date for a group member.

Properties

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

Output

JSON

  • id - The ID of the group member.
  • username - The username of the group member.
  • access_level - The access level assigned to the group member.
  • expires_at - The expiration date of the membership, if set.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the group ID and user ID path parameters are correctly set and valid to avoid 404 errors.
  • Verify that the API key has sufficient permissions to update group members to prevent authorization errors.
  • If skipping authentication, the request may fail due to lack of credentials.
  • Check that the HTTP method is set to PUT for this update operation to work correctly.

Links

Discussion