Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gitlab Cookbook

You're reading from   Gitlab Cookbook Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781783986842
Length 172 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jeroen van Baarsen Jeroen van Baarsen
Author Profile Icon Jeroen van Baarsen
Jeroen van Baarsen
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction and Installation 2. Explaining Git FREE CHAPTER 3. Managing Users, Groups, and Permissions 4. Issue Tracker and Wiki 5. Maintaining Your GitLab Instance 6. Webhooks, External Services, and the API 7. Using LDAP and OmniAuth Providers 8. GitLab CI A. Tips and Tricks Index

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.
    How to do it…
  2. Click on Settings.
    How to do it…
  3. Click on Members.
  4. Click on New Project Member.
  5. Type in the name of the user you want to add.
  6. In the Project Access dropdown, select Guest.
    How to do it…
  7. Click on Add Users.
  8. Log out and log in again as the user you have just added.
  9. Go to the project you have given this user access to.

    If you take a look at the menu...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime