GitLab API

GitlabTool

Actions1095

Groups → postApiV4GroupsIdShare

AI-generated

Summary

Shares a GitLab group with a specific user or group using the GitLab API.

Inputs

  • skipAuthentication — Whether to skip authentication (default: false).
  • authentication (required) — Authentication method (default: gitlabApi).
  • baseUrl — Base URL for the GitLab API (default: https://gitlab.com).
  • id (required) — The ID of the group to share.

Output shape

no body — success/failure only

Uses the GitLab API v4 endpoint; returns success status on completion.

Examples

Example 1: Share a group with a user

Set 'id' to the group ID, provide authentication, and configure the share payload in the request body.

Example 2: Share a group with another group

Set 'id' to the group ID, provide authentication, and configure the share payload with 'group_id' in the request body.

Links

Discussion