VeLKerr
VeLKerr

Reputation: 3157

How to give user level access to private GitLab repository?

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.

Upvotes: 95

Views: 183202

Answers (8)

girlCoding
girlCoding

Reputation: 31

2024 Answer

Under your Project Panel on the left hand side. Select Manage This will give you a pop up - with three options. Select Members Select the Blue Button labled "Invite Members" from the top right hand side. Enter the members (username or name or email address) Select Role (Guest, Reporter, Developer, Maintainer or Owner)

  • under the role before assigning * Select Expiration date (good if you hire a contractor or temp worker) it is optional. Select the Blue "Invite" button when you are done.

Upvotes: 3

DanEngoMan
DanEngoMan

Reputation: 531

2022 July - Answer

Click on the following:

  1. Project
  2. Settings (left panel)
  3. General (default selection, just make sure to stay in this tab)
  4. Expand the visibility, project features, permissions section
  5. Set the project visibility drop-down to Private and a link to project members will appear
  6. Click the link. It will take you to: https://gitlab.com/<namespace/repo_name>/-/project_members

Screenshot showing steps on the GitLab page... (not enough reputation yet to embed)

Upvotes: 4

narwanimonish
narwanimonish

Reputation: 1712

Simply visit URL

https://gitlab.com/<repo-path>/-/project_members

And modify the user's permissions.

Upvotes: 3

user4233758
user4233758

Reputation:

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.

Upvotes: 136

EZT
EZT

Reputation: 21

Nov 2021 This is now located under the Group Information section. Select members Invite those who you want to collaborate with

Group Information menu

Upvotes: 2

Maz341
Maz341

Reputation: 2439

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.

Upvotes: 48

Maverick7
Maverick7

Reputation: 1097

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.

Upvotes: 12

Dana
Dana

Reputation: 107

The prior answer has a problem. The (poor) Gitlab UI does not have a "members" option to click on after clicking on the project.

You first must click on the gear icon at the upper right to reveal the members option.

Upvotes: 9

Related Questions