Permissions and roles

When you add a user to a project or group, you assign them a role. The role determines which actions they can take in GitLab.

If you add a user to both a project’s group and the project itself, the higher role is used.

GitLab administrators have all permissions.

Roles

The available roles are:

  • Guest (This role applies to private and internal projects only.)
  • Reporter
  • Developer
  • Maintainer
  • Owner
  • Minimal Access (available for the top-level group only)

A user assigned the Guest role has the least permissions, and the Owner has the most.

By default, all users can create top-level groups and change their usernames. A GitLab administrator can change this behavior for the GitLab instance.

Project members permissions

Version history
  • Introduced in GitLab 14.8, personal namespace owners appear with Owner role in new projects in their namespace. Introduced with a flag named personal_project_owner_with_owner_access. Disabled by default.
  • Generally available in GitLab 14.9. Feature flag personal_project_owner_with_owner_access removed.

A user’s role determines what permissions they have on a project. The Owner role provides all permissions but is available only:

  • For group and project Owners. In GitLab 14.8 and earlier, the role is inherited for a group’s projects.
  • For Administrators.

Personal namespace owners:

  • Are displayed as having the Maintainer role on projects in the namespace, but have the same permissions as a user with the Owner role.
  • In GitLab 14.9 and later, for new projects in the namespace, are displayed as having the Owner role.

For more information about how to manage project members, see members of a project.

The following table lists project permissions available for each role:

ActionGuestReporterDeveloperMaintainerOwner
Analytics:
View issue analytics
βœ“βœ“βœ“βœ“βœ“
Analytics:
View value stream analytics
βœ“βœ“βœ“βœ“βœ“
Analytics:
View DORA metrics
Β βœ“βœ“βœ“βœ“
Analytics:
View CI/CD analytics
Β βœ“βœ“βœ“βœ“
Analytics:
View code review analytics
Β βœ“βœ“βœ“βœ“
Analytics:
View merge request analytics
Β βœ“βœ“βœ“βœ“
Analytics:
View repository analytics
Β βœ“βœ“βœ“βœ“
Application security:
View licenses in dependency list
Β Β βœ“βœ“βœ“
Application security:
Create and run on-demand DAST scans
Β Β βœ“βœ“βœ“
Application security:
View dependency list
Β Β βœ“βœ“βœ“
Application security:
Create a CVE ID Request
Β Β Β βœ“βœ“
Application security:
Create or assign security policy project
Β Β Β Β βœ“
Application security:
Create, edit, delete individual security policies
Β Β βœ“βœ“βœ“
GitLab Agent for Kubernetes:
View agents
Β Β βœ“βœ“βœ“
GitLab Agent for Kubernetes:
Manage agents
Β Β Β βœ“βœ“
Container Registry:
Create, edit, delete cleanup policies
Β Β Β βœ“βœ“
Container Registry:
Push an image to the Container Registry
Β Β βœ“βœ“βœ“
Container Registry:
Pull an image from the Container Registry
βœ“ (19)βœ“ (19)βœ“βœ“βœ“
Container Registry:
Remove a Container Registry image
Β Β βœ“βœ“βœ“
GitLab Pages:
View Pages protected by access control
βœ“βœ“βœ“βœ“βœ“
GitLab Pages:
Manage
Β Β Β βœ“βœ“
GitLab Pages:
Manage GitLab Pages domains and certificates
Β Β Β βœ“βœ“
GitLab Pages:
Remove GitLab Pages
Β Β Β βœ“βœ“
Incident Management:
Assign an alert
βœ“βœ“βœ“βœ“βœ“
Incident Management:
Participate in on-call rotation
βœ“βœ“βœ“βœ“βœ“
Incident Management:
View incident
βœ“βœ“βœ“βœ“βœ“
Incident Management:
Change alert status
Β βœ“βœ“βœ“βœ“
Incident Management:
Change incident severity
Β βœ“βœ“βœ“βœ“
Incident Management:
Create incident
Β βœ“βœ“βœ“βœ“
Incident Management:
View alerts
Β βœ“βœ“βœ“βœ“
Incident Management:
View escalation policies
Β βœ“βœ“βœ“βœ“
Incident Management:
View on-call schedules
Β βœ“βœ“βœ“βœ“
Incident Management:
Change incident escalation status
Β Β βœ“βœ“βœ“
Incident Management:
Change incident escalation policy
Β Β βœ“βœ“βœ“
Incident Management:
Manage on-call schedules
Β Β Β βœ“βœ“
Incident Management:
Manage escalation policies
Β Β Β βœ“βœ“
Issue boards:
Create or delete lists
Β βœ“βœ“βœ“βœ“
Issue boards:
Move issues between lists
Β βœ“βœ“βœ“βœ“
Issues:
Add Labels
βœ“ (15)βœ“βœ“βœ“βœ“
Issues:
Add to epic
Β βœ“ (22)βœ“ (22)βœ“ (22)βœ“ (22)
Issues:
Assign
βœ“ (15)βœ“βœ“βœ“βœ“
Issues:
Create (17)
βœ“βœ“βœ“βœ“βœ“
Issues:
Create confidential issues
βœ“βœ“βœ“βœ“βœ“
Issues:
View Design Management pages
βœ“βœ“βœ“βœ“βœ“
Issues:
View related issues
βœ“βœ“βœ“βœ“βœ“
Issues:
Set weight
Β βœ“βœ“βœ“βœ“
Issues:
Set metadata such as labels, milestones, or assignees when creating an issue
βœ“ (15)βœ“βœ“βœ“βœ“
Issues:
Edit metadata such labels, milestones, or assignees for an existing issue
(15)βœ“βœ“βœ“βœ“
Issues:
Set parent epic
Β βœ“βœ“βœ“βœ“
Issues:
View confidential issues
(2)βœ“βœ“βœ“βœ“
Issues:
Close / reopen (18)
Β βœ“βœ“βœ“βœ“
Issues:
Lock threads
Β βœ“βœ“βœ“βœ“
Issues:
Manage related issues
Β βœ“βœ“βœ“βœ“
Issues:
Manage tracker
Β βœ“βœ“βœ“βœ“
Issues:
Move issues (14)
Β βœ“βœ“βœ“βœ“
Issues:
Set issue time tracking estimate and time spent
Β βœ“βœ“βœ“βœ“
Issues:
Archive Design Management files
Β Β βœ“βœ“βœ“
Issues:
Upload Design Management files
Β Β βœ“βœ“βœ“
Issues:
Delete
Β Β Β Β βœ“
License Scanning:
View allowed and denied licenses
βœ“ (1)βœ“βœ“βœ“βœ“
License Scanning:
View License Compliance reports
βœ“ (1)βœ“βœ“βœ“βœ“
License Scanning:
View License list
Β βœ“βœ“βœ“βœ“
License approval policies:
Manage license policy
Β Β Β βœ“βœ“
Merge requests:
Assign reviewer
Β βœ“βœ“βœ“βœ“
Merge requests:
See list
Β βœ“βœ“βœ“βœ“
Merge requests:
Apply code change suggestions
Β Β βœ“βœ“βœ“
Merge requests:
Approve (8)
Β Β βœ“βœ“βœ“
Merge requests:
Assign
Β Β βœ“βœ“βœ“
Merge requests:
Create (16)
Β Β βœ“βœ“βœ“
Merge requests:
Add labels
Β Β βœ“βœ“βœ“
Merge requests:
Lock threads
Β Β βœ“βœ“βœ“
Merge requests:
Manage or accept
Β Β βœ“βœ“βœ“
Merge requests:
Resolve a thread
Β Β βœ“βœ“βœ“
Merge requests:
Manage merge approval rules (project settings)
Β Β Β βœ“βœ“
Merge requests:
Delete
Β Β Β Β βœ“
Package registry:
Pull a package
βœ“ (1)βœ“βœ“βœ“βœ“
Package registry:
Publish a package
Β Β βœ“βœ“βœ“
Package registry:
Delete a package
Β Β Β βœ“βœ“
Package registry:
Delete a file associated with a package
Β Β Β βœ“βœ“
Project operations:
View Error Tracking list
Β βœ“βœ“βœ“βœ“
Project operations:
Manage Feature flags
Β Β βœ“βœ“βœ“
Project operations:
Manage Error Tracking
Β Β Β βœ“βœ“
Projects:
Download project
βœ“ (1)βœ“βœ“βœ“βœ“
Projects:
Leave comments
βœ“βœ“βœ“βœ“βœ“
Projects:
Reposition comments on images (posted by any user)
βœ“ (9)βœ“ (9)βœ“ (9)βœ“βœ“
Projects:
View Insights
βœ“βœ“βœ“βœ“βœ“
Projects:
View releases
βœ“ (5)βœ“βœ“βœ“βœ“
Projects:
View Requirements
βœ“βœ“βœ“βœ“βœ“
Projects:
View time tracking reports
βœ“ (1)βœ“βœ“βœ“βœ“
Projects:
View wiki pages
βœ“βœ“βœ“βœ“βœ“
Projects:
Create snippets
Β βœ“βœ“βœ“βœ“
Projects:
Manage labels
Β βœ“βœ“βœ“βœ“
Projects:
View project traffic statistics
Β βœ“βœ“βœ“βœ“
Projects:
Create, edit, delete milestones.
Β βœ“βœ“βœ“βœ“
Projects:
Create, edit, delete releases
Β Β βœ“ (12)βœ“ (12)βœ“ (12)
Projects:
Create, edit wiki pages
Β Β βœ“βœ“βœ“
Projects:
Enable Review Apps
Β Β βœ“βœ“βœ“
Projects:
View project Audit Events
Β Β βœ“ (10)βœ“βœ“
Projects:
Add deploy keys
Β Β Β βœ“βœ“
Projects:
Add new team members
Β Β Β βœ“βœ“
Projects:
Manage team members
Β Β Β βœ“ (20)βœ“
Projects:
Change project features visibility level
Β Β Β βœ“ (13)βœ“
Projects:
Configure webhooks
Β Β Β βœ“βœ“
Projects:
Delete wiki pages
Β Β βœ“βœ“βœ“
Projects:
Edit comments (posted by any user)
Β Β Β βœ“βœ“
Projects:
Edit project badges
Β Β Β βœ“βœ“
Projects:
Edit project settings
Β Β Β βœ“βœ“
Projects:
Export project
Β Β Β βœ“βœ“
Projects:
Manage project access tokens (11)
Β Β Β βœ“ (20)βœ“
Projects:
Manage Project Operations
Β Β Β βœ“βœ“
Projects:
Rename project
Β Β Β βœ“βœ“
Projects:
Share (invite) projects with groups
Β Β Β βœ“ (7)βœ“ (7)
Projects:
View 2FA status of members
Β Β Β βœ“βœ“
Projects:
Assign project to a compliance framework
Β Β Β Β βœ“
Projects:
Archive project
Β Β Β Β βœ“
Projects:
Change project visibility level
Β Β Β Β βœ“
Projects:
Delete project
Β Β Β Β βœ“
Projects:
Disable notification emails
Β Β Β Β βœ“
Projects:
Transfer project to another namespace
Β Β Β Β βœ“
Projects: View Usage Quotas pageΒ Β Β βœ“βœ“
Repository:
Pull project code
βœ“ (1)βœ“βœ“βœ“βœ“
Repository:
View project code
βœ“ (1) (23)βœ“βœ“βœ“βœ“
Repository:
View a commit status
Β βœ“βœ“βœ“βœ“
Repository:
Add tags
Β Β βœ“βœ“βœ“
Repository:
Create new branches
Β Β βœ“βœ“βœ“
Repository:
Create or update commit status
Β Β βœ“ (4)βœ“βœ“
Repository:
Force push to non-protected branches
Β Β βœ“βœ“βœ“
Repository:
Push to non-protected branches
Β Β βœ“βœ“βœ“
Repository:
Remove non-protected branches
Β Β βœ“βœ“βœ“
Repository:
Rewrite or remove Git tags
Β Β βœ“βœ“βœ“
Repository:
Enable or disable branch protection
Β Β Β βœ“βœ“
Repository:
Enable or disable tag protection
Β Β Β βœ“βœ“
Repository:
Manage push rules
Β Β Β βœ“βœ“
Repository:
Push to protected branches (4)
Β Β Β βœ“βœ“
Repository:
Turn on or off protected branch push for developers
Β Β Β βœ“βœ“
Repository:
Remove fork relationship
Β Β Β Β βœ“
Repository:
Force push to protected branches (3)
Β Β Β Β Β 
Repository:
Remove protected branches (3)
Β Β Β Β Β 
Requirements Management:
Archive / reopen
Β βœ“βœ“βœ“βœ“
Requirements Management:
Create / edit
Β βœ“βœ“βœ“βœ“
Requirements Management:
Import / export
Β βœ“βœ“βœ“βœ“
Security dashboard:
Create issue from vulnerability finding
Β Β βœ“βœ“βœ“
Security dashboard:
Create vulnerability from vulnerability finding
Β Β βœ“βœ“βœ“
Security dashboard:
Dismiss vulnerability
Β Β βœ“βœ“βœ“
Security dashboard:
Dismiss vulnerability finding
Β Β βœ“βœ“βœ“
Security dashboard:
Resolve vulnerability
Β Β βœ“βœ“βœ“
Security dashboard:
Revert vulnerability to detected state
Β Β βœ“βœ“βœ“
Security dashboard:
Use security dashboard
Β Β βœ“βœ“βœ“
Security dashboard:
View vulnerability
Β Β βœ“βœ“βœ“
Security dashboard:
View vulnerability findings in dependency list
Β Β βœ“βœ“βœ“
Tasks:
Create (17)
Β βœ“βœ“βœ“βœ“
Tasks:
Edit
Β βœ“βœ“βœ“βœ“
Tasks:
Remove from issue
Β βœ“βœ“βœ“βœ“
Tasks:
Delete (21)
Β Β Β Β βœ“
Terraform:
Read Terraform state
Β Β βœ“βœ“βœ“
Terraform:
Manage Terraform state
Β Β Β βœ“βœ“
Test cases:
Archive
Β βœ“βœ“βœ“βœ“
Test cases:
Create
Β βœ“βœ“βœ“βœ“
Test cases:
Move
Β βœ“βœ“βœ“βœ“
Test cases:
Reopen
Β βœ“βœ“βœ“βœ“
  1. On self-managed GitLab instances, users with the Guest role are able to perform this action only on public and internal projects (not on private projects). External users must be given explicit access (at least the Reporter role) even if the project is internal. Users with the Guest role on GitLab.com are only able to perform this action on public projects because internal visibility is not available.
  2. Guest users can only view the confidential issues they created themselves or are assigned to.
  3. Not allowed for Guest, Reporter, Developer, Maintainer, or Owner. See protected branches.
  4. If the branch is protected, this depends on the access given to Developers and Maintainers.
  5. Guest users can access GitLab Releases for downloading assets but are not allowed to download the source code nor see repository information like commits and release evidence.
  6. Actions are limited only to records owned (referenced) by user.
  7. When Share Group Lock is enabled the project can’t be shared with other groups. It does not affect group with group sharing.
  8. For information on eligible approvers for merge requests, see Eligible approvers.
  9. Applies only to comments on Design Management designs.
  10. Users can only view events based on their individual actions.
  11. Project access tokens are supported for self-managed instances on Free and above. They are also supported on GitLab SaaS Premium and above (excluding trial licenses).
  12. If the tag is protected, this depends on the access given to Developers and Maintainers.
  13. A Maintainer or Owner can’t change project features visibility level if project visibility is set to private.
  14. Attached design files are moved together with the issue even if the user doesn’t have the Developer role.
  15. Guest users can only set metadata (for example, labels, assignees, or milestones) when creating an issue. They cannot change the metadata on existing issues.
  16. In projects that accept contributions from external members, users can create, edit, and close their own merge requests.
  17. Authors and assignees can modify the title and description even if they don’t have the Reporter role.
  18. Authors and assignees can close and reopen issues even if they don’t have the Reporter role.
  19. The ability to view the Container Registry and pull images is controlled by the Container Registry’s visibility permissions.
  20. Maintainers cannot create, demote, or remove Owners, and they cannot promote users to the Owner role. They also cannot approve Owner role access requests.
  21. Authors of tasks can delete them even if they don’t have the Owner role, but they have to have at least the Guest role for the project.
  22. You must have permission to view the epic.
  23. In GitLab 15.9 and later, users with the Guest role and an Ultimate license can view private repository content if an administrator (on self-managed) or group owner (on GitLab.com) gives those users permission. The administrator or group owner can create a custom role through the API and assign that role to the users.

Project features permissions

More details about the permissions for some project-level features follow.

GitLab CI/CD permissions

GitLab CI/CD permissions for some roles can be modified by these settings:

  • Public pipelines: When set to public, gives access to certain CI/CD features to Guest project members.
  • Pipeline visibility: When set to Everyone with Access, gives access to certain CI/CD β€œview” features to non-project members.
ActionNon-memberGuestReporterDeveloperMaintainerOwner
See that artifacts existβœ“ (3)βœ“ (3)βœ“βœ“βœ“βœ“
View a list of jobsβœ“ (1)βœ“ (2)βœ“βœ“βœ“βœ“
View and download artifactsβœ“ (1)βœ“ (2)βœ“βœ“βœ“βœ“
View environments βœ“ (3)βœ“ (3)βœ“βœ“βœ“βœ“
View job logs and job details pageβœ“ (1)βœ“ (2)βœ“βœ“βœ“βœ“
View pipelines and pipeline details pagesβœ“ (1)βœ“ (2)βœ“βœ“βœ“βœ“
View pipelines tab in MRβœ“ (3)βœ“ (3)βœ“βœ“βœ“βœ“
View vulnerabilities in a pipelineΒ βœ“ (2)βœ“βœ“βœ“βœ“
View and download project-level Secure Files Β Β Β βœ“βœ“βœ“
Cancel and retry jobsΒ Β Β βœ“βœ“βœ“
Create new environments Β Β Β βœ“βœ“βœ“
Delete job logs or job artifactsΒ Β Β βœ“ (4)βœ“βœ“
Run CI/CD pipelineΒ Β Β βœ“βœ“βœ“
Run CI/CD pipeline for a protected branchΒ Β Β βœ“ (5)βœ“ (5)βœ“
Stop environments Β Β Β βœ“βœ“βœ“
Run deployment job for a protected environmentΒ Β βœ“ (5)βœ“ (6)βœ“ (6)βœ“
View a job with debug logging Β Β Β βœ“βœ“βœ“
Use pipeline editorΒ Β Β βœ“βœ“βœ“
Run interactive web terminals Β Β Β βœ“βœ“βœ“
Add project runners to projectΒ Β Β Β βœ“βœ“
Clear runner caches manuallyΒ Β Β Β βœ“βœ“
Enable shared runners in projectΒ Β Β Β βœ“βœ“
Manage CI/CD settingsΒ Β Β Β βœ“βœ“
Manage job triggersΒ Β Β Β βœ“βœ“
Manage project-level CI/CD variablesΒ Β Β Β βœ“βœ“
Manage project-level Secure Files Β Β Β Β βœ“βœ“
Use environment terminals Β Β Β Β βœ“βœ“
Delete pipelinesΒ Β Β Β Β βœ“
  1. If the project is public and Public pipelines is enabled in Project Settings > CI/CD.
  2. If Public pipelines is enabled in Project Settings > CI/CD.
  3. If the project is public.
  4. Only if the job was both:
    • Triggered by the user.
    • In GitLab 13.0 and later, run for a non-protected branch.
  5. If the user is allowed to merge or push to the protected branch.
  6. If the user if part of a group with at least the Reporter role

Job permissions

This table shows granted privileges for jobs triggered by specific types of users:

ActionGuest, ReporterDeveloperMaintainerAdministrator
Run CI jobΒ βœ“βœ“βœ“
Clone source and LFS from current projectΒ βœ“βœ“βœ“
Clone source and LFS from public projectsΒ βœ“βœ“βœ“
Clone source and LFS from internal projectsΒ βœ“ (1)βœ“ (1)βœ“
Clone source and LFS from private projectsΒ βœ“ (2)βœ“ (2)βœ“ (2)
Pull container images from current projectΒ βœ“βœ“βœ“
Pull container images from public projectsΒ βœ“βœ“βœ“
Pull container images from internal projectsΒ βœ“ (1)βœ“ (1)βœ“
Pull container images from private projectsΒ βœ“ (2)βœ“ (2)βœ“ (2)
Push container images to current projectΒ βœ“βœ“βœ“
Push container images to other projectsΒ Β Β Β 
Push source and LFSΒ Β Β Β 
  1. Only if the triggering user is not an external one.
  2. Only if the triggering user is a member of the project. See also Usage of private Docker images with if-not-present pull policy.

Group members permissions

Any user can remove themselves from a group, unless they are the last Owner of the group.

The following table lists group permissions available for each role:

ActionGuestReporterDeveloperMaintainerOwner
Add/remove child epics βœ“ (8)βœ“βœ“βœ“βœ“
Add an issue to an epic βœ“ (7)βœ“ (7)βœ“ (7)βœ“ (7)βœ“ (7)
Browse groupβœ“βœ“βœ“βœ“βœ“
Pull a container image using the dependency proxyβœ“βœ“βœ“βœ“βœ“
View Contribution analyticsβœ“βœ“βœ“βœ“βœ“
View group epic βœ“βœ“βœ“βœ“βœ“
View group wiki pagesβœ“ (5)βœ“βœ“βœ“βœ“
View Insights βœ“βœ“βœ“βœ“βœ“
View Insights chartsβœ“βœ“βœ“βœ“βœ“
View Issue analytics βœ“βœ“βœ“βœ“βœ“
View value stream analyticsβœ“βœ“βœ“βœ“βœ“
Create/edit group epic Β βœ“βœ“βœ“βœ“
Create/edit/delete epic boards Β βœ“βœ“βœ“βœ“
Manage group labelsΒ βœ“βœ“βœ“βœ“
Publish packages Β Β βœ“βœ“βœ“
Pull packages Β βœ“βœ“βœ“βœ“
Delete packages Β Β Β βœ“βœ“
Create/edit/delete Maven and generic package duplicate settings Β Β Β βœ“βœ“
Enable/disable package request forwardingΒ Β Β βœ“βœ“
Pull a Container Registry imageβœ“ (6)βœ“βœ“βœ“βœ“
Remove a Container Registry imageΒ Β βœ“βœ“βœ“
View Group DevOps Adoption Β βœ“βœ“βœ“βœ“
View metrics dashboard annotationsΒ βœ“βœ“βœ“βœ“
View Productivity analytics Β βœ“βœ“βœ“βœ“
Create and edit group wiki pagesΒ Β βœ“βœ“βœ“
Create project in groupΒ Β βœ“ (2)(4)βœ“ (2)βœ“ (2)
Fork project into a groupΒ Β Β βœ“βœ“
Create/edit/delete group milestonesΒ βœ“βœ“βœ“βœ“
Create/edit/delete iterationsΒ βœ“βœ“βœ“βœ“
Create/edit/delete metrics dashboard annotationsΒ Β βœ“βœ“βœ“
Enable/disable a dependency proxyΒ Β Β βœ“βœ“
Purge the dependency proxy for a groupΒ Β Β Β βœ“
Create/edit/delete dependency proxy cleanup policies Β Β Β βœ“βœ“
Use security dashboard Β Β βœ“βœ“βœ“
View group Audit EventsΒ Β βœ“ (6)βœ“ (6)βœ“
Create subgroupΒ Β Β βœ“ (1)βœ“
Delete group wiki pagesΒ Β βœ“βœ“βœ“
Edit epic comments (posted by any user)Β Β Β βœ“βœ“
List group deploy tokensΒ Β Β βœ“βœ“
Manage group push rules Β Β Β βœ“βœ“
View/manage group-level Kubernetes clusterΒ Β Β βœ“βœ“
Create and manage compliance frameworksΒ Β Β Β βœ“
Create/Delete group deploy tokensΒ Β Β Β βœ“
Change group visibility levelΒ Β Β Β βœ“
Delete groupΒ Β Β Β βœ“
Delete group epic Β Β Β Β βœ“
Disable notification emailsΒ Β Β Β βœ“
Edit group settingsΒ Β Β Β βœ“
Edit SAML SSO Β Β Β Β βœ“ (3)
Filter members by 2FA statusΒ Β Β Β βœ“
Manage group level CI/CD variablesΒ Β Β Β βœ“
Manage group membersΒ Β Β Β βœ“
Share (invite) groups with groupsΒ Β Β Β βœ“
View 2FA status of membersΒ Β Β Β βœ“
View Billing Β Β Β Β βœ“ (3)
View group Usage Quotas pageΒ Β Β Β βœ“ (3)
View group runnersΒ Β Β βœ“βœ“
Manage group runnersΒ Β Β Β βœ“
Migrate groupsΒ Β Β Β βœ“
Manage subscriptions, and purchase storage and compute minutes Β Β Β Β βœ“
  1. Groups can be set to allow either Owners, or Owners and users with the Maintainer role, to create subgroups.
  2. Default project creation role can be changed at:
  3. Does not apply to subgroups.
  4. Developers can push commits to the default branch of a new project only if the default branch protection is set to β€œPartially protected” or β€œNot protected”.
  5. In addition, if your group is public or internal, all users who can see the group can also see group wiki pages.
  6. Users can only view events based on their individual actions.
  7. You must have permission to view the epic and edit the issue.
  8. You must have permission to view the parent and child epics.

Subgroup permissions

When you add a member to a subgroup, they inherit the membership and permission level from the parent groups. This model allows access to nested groups if you have membership in one of its parents.

For more information, see subgroup memberships.

Users with Minimal Access

Version history
  • Introduced in GitLab 13.4.
  • Support for inviting users with Minimal Access role introduced in GitLab 15.9.

Users with the Minimal Access role do not:

  • Count as licensed seats on self-managed Ultimate subscriptions or any GitLab.com subscriptions.
  • Automatically have access to projects and subgroups in that root group.

Owners must explicitly add these users to the specific subgroups and projects.

You can use the Minimal Access role to give the same member more than one role in a group:

  1. Add the member to the root group with a Minimal Access role.
  2. Invite the member as a direct member with a specific role in any subgroup or project in that group.

Because of an outstanding issue, when a user with the Minimal Access role:

  • Signs in with standard web authentication, they receive a 404 error when accessing the parent group.
  • Signs in with Group SSO, they receive a 404 error immediately because they are redirected to the parent group page.

To work around the issue, give these users the Guest role or higher to any project or subgroup within the parent group.

Custom roles

Version history

Custom roles allow group members who are assigned the Owner role to create roles specific to the needs of their organization.

For a demo of the custom roles feature, see [Demo] Ultimate Guest can view code on private repositories via custom role.

The following custom roles are available:

  • The Guest+1 role, which allows users with the Guest role to view code.
  • In GitLab 16.1 and later, you can create a custom role that can view vulnerability reports and change the status of the vulnerabilities.
  • In GitLab 16.3 and later, you can create a custom role that can view the dependency list.
  • In GitLab 16.4 and later, you can create a custom role that can approve merge requests.

You can discuss individual custom role and permission requests in issue 391760.

When you enable a custom role for a user with the Guest role, that user has access to elevated permissions, and therefore:

This does not apply to Guest+1, a Guest custom role that only enables the read_code permission. Users with that specific custom role are not considered billable users and do not use a seat.

Create a custom role

Prerequisites:

  • You must be an administrator for the self-managed instance, or have the Owner role in the group you are creating the custom role in.
  • The group must be in the Ultimate tier.
  • You must have:
    • At least one private project so that you can see the effect of giving a user with the Guest role a custom role. The project can be in the group itself or one of that group’s subgroups.
    • A personal access token with the API scope.

GitLab SaaS

Prerequisite:

  • You must have the Owner role in the group you are creating the custom role in.
  1. On the left sidebar, select Search or go to and find your group.
  2. Select Settings > Roles and Permissions.
  3. Select Add new role.
  4. In Base role to use as template, select Guest.
  5. In Role name, enter the custom role’s title.
  6. Select the Permissions for the new custom role.
  7. Select Create new role.

Self Managed GitLab Instances

Prerequisite:

  • You must be an administrator for the self-managed instance you are creating the custom role in.
  1. On the left sidebar, select Search or go to.
  2. Select Admin Area.
  3. Select Settings > Roles and Permissions.
  4. From the top dropdown list, select the group you want to create a custom role in.
  5. Select Add new role.
  6. In Base role to use as template, select Guest.
  7. In Role name, enter the custom role’s title.
  8. Select the Permissions for the new custom role.
  9. Select Create new role.

To create a custom role, you can also use the API.

Custom role requirements

For every ability, a minimal access level is defined. To be able to create a custom role which enables a certain ability, the member_roles table record has to have the associated minimal access level. For all abilities, the minimal access level is Guest. Only users who have at least the Guest role can be assigned to a custom role.

Some roles and abilities require having other abilities enabled. For example, a custom role can only have administration of vulnerabilities (admin_vulnerability) enabled if reading vulnerabilities (read_vulnerability) is also enabled.

You can see the required minimal access levels and abilities requirements in the following table.

AbilityMinimal access levelRequired ability
read_codeGuest-
read_dependencyGuest-
read_vulnerabilityGuest-
admin_merge_requestGuest-
admin_vulnerabilityGuestread_vulnerability

Associate a custom role with an existing group member

To associate a custom role with an existing group member, a group member with the Owner role:

  1. Invites a user as a direct member to the root group or any subgroup or project in the root group’s hierarchy as a Guest. At this point, this Guest user cannot see any code on the projects in the group or subgroup.
  2. Optional. If the Owner does not know the id of the Guest user receiving a custom role, finds that id by making an API request.

  3. Associates the member with the Guest+1 role using the Group and Project Members API endpoint

    # to update a project membership
    curl --request PUT --header "Content-Type: application/json" --header "Authorization: Bearer <your_access_token>" --data '{"member_role_id": '<member_role_id>', "access_level": 10}' "https://gitlab.example.com/api/v4/projects/<project_id>/members/<user_id>"
    
    # to update a group membership
    curl --request PUT --header "Content-Type: application/json" --header "Authorization: Bearer <your_access_token>" --data '{"member_role_id": '<member_role_id>', "access_level": 10}' "https://gitlab.example.com/api/v4/groups/<group_id>/members/<user_id>"
    

    Where:

    • <project_id and <group_id>: The id or URL-encoded path of the project or group associated with the membership receiving the custom role.
    • <member_role_id>: The id of the member role created in the previous section.
    • <user_id>: The id of the user receiving a custom role.

    Now the Guest+1 user can view code on all projects associated with this membership.

Remove a custom role

Prerequisite:

  • You must be an administrator or have the Owner role in the group you are removing the custom role from.

You can remove a custom role from a group only if no group members have that role.

To do this, you can either remove the custom role from all group members with that custom role, or remove those members from the group.

Remove a custom role from a group member

To remove a custom role from a group member, use the Group and Project Members API endpoint and pass an empty member_role_id value.

# to update a project membership
curl --request PUT --header "Content-Type: application/json" --header "Authorization: Bearer <your_access_token>" --data '{"member_role_id": "", "access_level": 10}' "https://gitlab.example.com/api/v4/projects/<project_id>/members/<user_id>"

# to update a group membership
curl --request PUT --header "Content-Type: application/json" --header "Authorization: Bearer <your_access_token>" --data '{"member_role_id": "", "access_level": 10}' "https://gitlab.example.com/api/v4/groups/<group_id>/members/<user_id>"

Remove a group member with a custom role from the group

  1. On the left sidebar, select Search or go to and find your group.
  2. Select Manage > Members.
  3. On the member row you want to remove, select the vertical ellipsis () and select Remove member.
  4. In the Remove member confirmation dialog, do not select any checkboxes.
  5. Select Remove member.

Delete the custom role

After you have made sure no group members have that custom role, delete the custom role.

  1. On the left sidebar, select Search or go to.
  2. GitLab.com only. Select Admin Area.
  3. Select Settings > Roles and Permissions.
  4. Select Custom Roles.
  5. In the Actions column, select Delete role () and confirm.

To delete a custom role, you can also use the API. To use the API, you must know the id of the custom role. If you do not know this id, find it by making an API request.

Known issues

  • If a user with a custom role is shared with a group or project, their custom role is not transferred over with them. The user has the regular Guest role in the new group or project.
  • You cannot use an Auditor user as a template for a custom role.