GitLab API

GitlabTool

Actions905

Overview

This node operation allows importing project 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 member access from a source project to a target project within GitLab, such as when setting up a new project with the same team members as an existing one.

Use Case Examples

  1. Import members from an existing project to a new project to maintain consistent access control.
  2. Automate the process of syncing project members between related projects in GitLab.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request (boolean). Defaults to false.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance. Defaults to https://gitlab.com.
Method The HTTP method used for the request. Defaults to POST for this operation.
Path Parameters The path parameters required for the API endpoint, including the target project ID (`id`) and the source project ID (`project_id`) from which to import members.

Output

JSON

  • success - Indicates whether the import operation was successful.
  • imported_members - Details of the members imported from the source project.

Dependencies

  • GitLab API authentication token or API key credential

Troubleshooting

  • Ensure the provided project IDs are correct and accessible with the authenticated user token.
  • Verify that the API token has sufficient permissions to read members from the source project and add members to the target project.
  • Common errors include 404 Not Found if project IDs are invalid or 403 Forbidden if permissions are insufficient.

Links

Discussion