'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.



Solution 1:[1]

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.

Solution 2:[2]

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.

Solution 3:[3]

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.

Solution 4:[4]

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

Group Information menu

Solution 5:[5]

Simply visit URL

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

And modify the user's permissions.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Maverick7
Solution 3 Dana
Solution 4 Suraj Rao
Solution 5 narwanimonish