GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows importing members from one GitLab project to another by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/import_project_members/{project_id}`. It is useful for scenarios where you want to replicate or transfer project members between projects within GitLab, such as when setting up a new project with the same team or migrating members from an old project.

Use Case Examples

  1. Import members from a source project to a target project by specifying the target project ID and the source project ID.
  2. Automate member synchronization between projects in GitLab.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.
Path Parameters Parameters to specify the target project ID (`id`) and the source project ID (`project_id`) for importing members.

Output

JSON

  • id - ID of the project where members are imported.
  • imported_members_count - Number of members successfully imported.
  • import_status - Status of the import operation.

Dependencies

  • GitLab API key credential for authentication.

Troubleshooting

  • Ensure the provided project IDs are correct and accessible with the authenticated user.
  • Check that the GitLab API token has sufficient permissions to import project members.
  • Verify the base URL is correct if using a self-hosted GitLab instance.
  • Common errors include 404 Not Found if project IDs are invalid, or 403 Forbidden if permissions are insufficient.

Links

Discussion