grant-gitlab

Add a user to a GitLab project with a specified access level.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/hugogu/skills --skill grant-gitlab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grant-gitlab
Source: https://github.com/hugogu/skills/tree/main/skills/grant-gitlab
Command: npx skills add https://github.com/hugogu/skills --skill grant-gitlab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates granting a GitLab project access to a specific user, eliminating manual steps in the GitLab UI or API.

Core Features & Use Cases

  • Automated membership: Add a user to a project with a designated role (guest, reporter, developer, maintainer) and create or update their permissions as needed.
  • Error handling: Validate the project existence, user existence, and token validity, returning actionable errors when something goes wrong.
  • Use cases: IT admins or developers who manage project access across multiple projects can quickly provision access via a single command.

Quick Start

Ask to grant a user access by providing the username, project, and desired role to execute the operation.

Frequently Asked Questions about grant-gitlab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitLab project access for a new user?

Automate GitLab project access by running a command that adds a target username to a project path with a specific numeric access level. This eliminates manual UI steps and instantly provisions the required permissions.

How do I set a user's access level in a GitLab project via the API?

Set a user's GitLab access level by providing their username, project path, and a numeric access level value. The operation creates or updates their project membership to apply the designated role.

Do I need a GitLab token to grant project membership automatically?

Yes, a GitLab token is required to grant project membership automatically. You must provide it via the GITLAB_TOKEN environment variable to authenticate the API request and validate sufficient permissions.

What happens if a user or project is missing when adding GitLab access?

If a user or project is missing when adding GitLab access, the process returns actionable errors. It validates token validity, user existence, and project existence to prevent silent failures during membership provisioning.

Can I provision access across multiple GitLab projects at once?

You can provision access across multiple GitLab projects by executing the operation for each target project path. This workflow is designed for admins or DevOps who need to quickly adjust project membership.

Why does automated GitLab project membership fail with an error?

Automated GitLab project membership fails when there are missing users, non-existent projects, or insufficient permissions. The process validates the provided token, username, and project path to return specific actionable errors.