gitlab-org--gitlab-foss/doc/user/project/members/share_project_with_groups.md
Marcel Amirault f6ff16eb98 Fix markdown spacing in various docs
Align images and lists in assorted markdown docs
2019-08-12 09:54:30 +00:00

2.2 KiB

Share Projects with other Groups

You can share projects with other groups. This makes it possible to add a group of users to a project with a single action.

Groups as collections of users

Groups are used primarily to create collections of projects, but you can also take advantage of the fact that groups define collections of users, namely the group members.

Sharing a project with a group of users

The primary mechanism to give a group of users, say 'Engineering', access to a project, say 'Project Acme', in GitLab is to make the 'Engineering' group the owner of 'Project Acme'. But what if 'Project Acme' already belongs to another group, say 'Open Source'? This is where the group sharing feature can be of use.

To share 'Project Acme' with the 'Engineering' group:

  1. For 'Project Acme' use the left navigation menu to go to Settings > Members

    share project with groups

  2. Select the 'Share with group' tab

  3. Add the 'Engineering' group with the maximum access level of your choice

  4. Click Share to share it

    share project with groups tab

  5. After sharing 'Project Acme' with 'Engineering', the project will be listed on the group dashboard

    'Project Acme' is listed as a shared project for 'Engineering'

Note that you can only share a project with:

  • groups for which you have an explicitly defined membership
  • groups that contain a nested subgroup or project for which you have an explicitly defined role

Admins are able to share projects with any group in the system.

Maximum access level

In the example above, the maximum access level of 'Developer' for members from 'Engineering' means that users with higher access levels in 'Engineering' ('Maintainer' or 'Owner') will only have 'Developer' access to 'Project Acme'.

Share project with group lock

It is possible to prevent projects in a group from sharing a project with another group. This allows for tighter control over project access.

Learn more about Share with group lock.