GitLab API

GitlabTool

Actions1095

Groups → postApiV4GroupsIdMembersUserIdOverride

AI-generated

Summary

Add or override a group member's permissions by user ID within a specified GitLab group.

Inputs

  • id (required) — The ID of the GitLab group to which the member belongs.
  • user_id (required) — The user ID of the member whose permissions are being added or overridden.
  • skipAuthentication — Whether to skip authentication for this request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a single response object representing the updated group member's permissions as returned by the GitLab API

The operation issues a POST request to the endpoint /api/v4/groups/{id}/members/{user_id}/override. Authentication is required unless 'Skip Authentication' is set to true. The output mirrors the API's response to the override operation.

Examples

Example 1: Override a member's permissions in a group

Provide the group 'id' and the 'user_id' of the member. Optionally adjust the base URL for self-hosted GitLab and if authentication should be skipped.

Links

Discussion