GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdImportProjectMembersProjectId

AI-generated

Summary

Import members from a source GitLab project into a target GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the target project where members will be imported.
  • project_id (required) — The ID of the source project from which to import members.
  • skipAuthentication — Option to skip authentication (default is false).
  • baseUrl — Base URL of the GitLab server, defaulting to https://gitlab.com.

Output shape

a JSON object representing the response from GitLab API regarding the import operation, typically the imported member data or status

The operation uses HTTP POST to '/api/v4/projects/{id}/import_project_members/{project_id}'. It requires authentication unless 'skipAuthentication' is true. No additional request body parameters are defined.

Examples

Example 1: Import members from a source project with ID 123 into target project with ID 'my-group/my-project' using standard authentication.

Set 'id' to 'my-group/my-project' and 'project_id' to 123, ensure authentication is enabled, and initiate the operation.

Links

Discussion