Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give user level access to private GitLab repository?

Tags:

git

gitlab

I have a private repository in GitLab. I have to give its access to members of my team. How can I do that using GitLab web-interface?

I know, how to do this in GitHub, but in GitLab it's somehow different.

like image 304
VeLKerr Avatar asked Aug 09 '15 19:08

VeLKerr


People also ask

Does GitLab allow private repositories?

A private Git repository on GitLab can be accessed using either SSH or HTTPS. The preferred method is to always use SSH and a SSH key pair. Only use HTTPS if you have no choice.


3 Answers

Update 2021: This answer is out of date, scroll down for the 2021 info.

UPDATE: Gitlab has changed a bit in 2 years, so here is the updated flow.

  1. Click on the project that you want to share.
  2. Click on the Settings tab (the gear icon on the left).
  3. Click on the Members subtab.
  4. Add member, and find the user if it exists on GitLab, or insert email to send an invitation.
  5. Select access level for the user, the possible levels are:
  • Guest, can see wiki pages, view and create issues.
  • Reporter, can do what the guest can plus view the code.
  • Developer, normal developer access, can develop, but cannot push or merge to procted branches by default.
  • Maintainer, can do everything except managing the project.
  1. For more info about the user access level refer to gitlab official help.
  2. (Optional) Set expiration date of the user access.

Old instructions:

  1. Click on the project that you want to share.
  2. Click on members.
  3. Add member, and find the user if it exists on GitLab, or insert email to send an invitation.
like image 150
Aleksandar Avatar answered Oct 24 '22 05:10

Aleksandar


2021 Updated Answer

  1. Click on the project's name which you want to share.
  2. On the left side, there is an option Project Information (hover on that).
  3. Open Members and Project Members page will open.
  4. Under invite member's Tab there is an option "GitLab member or Email address"
  5. Enter the username/email of the person you want to add.
  6. Choose a role from (Guest, Maintainer, Developer, Reporter)
  7. Add Expiry date when you want to take back the role which you have assigned to this member. (Optional)
  8. Click Invite.

2020 Answer:

  1. Open Project (Click on project's name to open it)
  2. On the left side bar the second last option is Members, open it.
  3. Under invite member's Tab there is an option "GitLab member or Email address"
  4. Enter the username/email of the person you want to add.
  5. Choose a role from (Guest, Maintainer, Developer, Reporter)
  6. Add Expiry date when you want to take back the role which you have assigned to this member. (Optional)
  7. Click Invite.

2019 Answer:

  1. Open Project (Click on project's name to open it)
  2. On the left side bar the last option is Settings open it.
  3. Click on members
  4. Under invite member's Tab there is an option "GitLab member or Email address" Enter the username of the person you want to add.
  5. Choose a role from (Guest, Maintainer, Developer, Reporter)
  6. Add to project.
like image 27
Maz341 Avatar answered Oct 24 '22 05:10

Maz341


2021 - Answer

  1. Click on the project that you want to share.
  2. Click on the Project Information tab. (first icon)
  3. Click on the Members subtab.
like image 12
Maverick7 Avatar answered Oct 24 '22 04:10

Maverick7