Working with user permissions

You probably don't want every user in your system to be an administrator, or perhaps you have a project where you only want other people to be able to create issues and not commit code. In any of these cases, you need to use the permission model in GitLab. In this recipe, we will take a look at this.

Getting ready

To complete this recipe, you need at least two users in your GitLab instance, one of which needs to be an admin. You also need at least one project; I'll use the super-git project from the previous chapter.

How to do it…

Let's see how you can add permissions to your users with the following steps:

  1. Go to your project in GitLab.
  2. Click on Settings.
  3. Click on Members.
  4. Click on New Project Member.
  5. Type in the name of the ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.