2021-01-29 00:20:46 +05:30
---
2021-11-18 22:05:49 +05:30
stage: Manage
group: Workspace
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2022-01-26 12:08:38 +05:30
# Share projects with other groups **(FREE)**
2018-03-17 18:26:18 +05:30
You can share projects with other [groups ](../../group/index.md ). 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 ](../../group/index.md ), but you can also
take advantage of the fact that groups define collections of _users_ , namely the group
members.
2022-05-07 20:08:51 +05:30
## Share a project with a group of users
2018-03-17 18:26:18 +05:30
2022-05-07 20:08:51 +05:30
> - [Changed](https://gitlab.com/gitlab-org/gitlab/-/issues/247208) in GitLab 13.11 from a form to a modal
window [with a flag ](../../feature_flags.md ). Disabled by default.
> - Modal window [enabled on GitLab.com and self-managed](https://gitlab.com/gitlab-org/gitlab/-/issues/247208)
in GitLab 14.8.
> - [Generally available](https://gitlab.com/gitlab-org/gitlab/-/issues/352526) in GitLab 14.9.
[Feature flag `invite_members_group_modal` ](https://gitlab.com/gitlab-org/gitlab/-/issues/352526 ) removed.
2021-04-29 21:17:54 +05:30
2022-08-13 15:12:31 +05:30
You can share a project only with:
- Groups for which you have an explicitly defined [membership ](index.md ).
- Groups that contain a nested subgroup or project for which you have an explicitly defined role.
2022-08-27 11:52:29 +05:30
Administrators can share projects with any group in the instance.
2022-08-13 15:12:31 +05:30
2018-03-17 18:26:18 +05:30
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
2020-03-13 15:44:24 +05:30
Acme'. But what if 'Project Acme' already belongs to another group, say 'Open Source'?
2018-03-17 18:26:18 +05:30
This is where the group sharing feature can be of use.
2018-05-09 12:01:36 +05:30
To share 'Project Acme' with the 'Engineering' group:
2018-03-17 18:26:18 +05:30
2021-09-04 01:27:46 +05:30
1. For 'Project Acme' use the left navigation menu to go to **Project information > Members** .
2022-05-07 20:08:51 +05:30
1. Select **Invite a group** .
2021-02-22 17:27:13 +05:30
1. Add the 'Engineering' group with the maximum access level of your choice.
2022-05-07 20:08:51 +05:30
1. Optional. Select an **Access expiration date** .
2022-01-26 12:08:38 +05:30
1. Select **Invite** .
After sharing 'Project Acme' with 'Engineering':
- The group is listed in the **Groups** tab.
- The project is listed on the group dashboard.
2022-10-11 01:57:18 +05:30
- All members, including members from the ancestors of the 'Engineering' group, gain access to 'Project Acme' with an access level based on the outcome of [maximum access level ](#maximum-access-level ).
2018-03-17 18:26:18 +05:30
2022-08-13 15:12:31 +05:30
When you share a project, be aware of the following restrictions and outcomes:
2018-05-09 12:01:36 +05:30
2022-08-13 15:12:31 +05:30
- [Maximum access level ](#maximum-access-level )
2022-08-27 11:52:29 +05:30
- [Sharing projects with groups of a higher restrictive visibility level ](#sharing-projects-with-groups-of-a-higher-restrictive-visibility-level )
2022-08-13 15:12:31 +05:30
- [Sharing project with group lock ](#share-project-with-group-lock )
2018-03-17 18:26:18 +05:30
2022-05-07 20:08:51 +05:30
## Maximum access level
2021-04-29 21:17:54 +05:30
2022-05-07 20:08:51 +05:30
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') only have 'Developer' access to 'Project Acme'.
2021-04-29 21:17:54 +05:30
2022-05-07 20:08:51 +05:30
### Share a project with a subgroup
2021-04-29 21:17:54 +05:30
2022-05-07 20:08:51 +05:30
You can't share a project with a group that's an ancestor of a [subgroup ](../../group/subgroups/index.md ) the project is
in. That means you can only share down the hierarchy. For example, `group/subgroup01/project` :
2018-03-17 18:26:18 +05:30
2022-05-07 20:08:51 +05:30
- Can not be shared with `group` .
- Can be shared with `group/subgroup02` or `group/subgroup01/subgroup03` .
2018-03-17 18:26:18 +05:30
2022-08-27 11:52:29 +05:30
## Sharing projects with groups of a higher restrictive visibility level
2022-08-13 15:12:31 +05:30
2022-08-27 11:52:29 +05:30
There are several outcomes you must be aware of when you share a project with a group that has a more restrictive [visibility level ](../../public_access.md#project-and-group-visibility ) than the project. For example, when you:
2019-10-31 01:37:42 +05:30
2022-08-27 11:52:29 +05:30
- Share a public project with a private group.
- Share a public project with an internal group.
- Share an internal project with a private group.
The following outcomes occur:
- The group name is visible to all users that can view the project members page.
- Owners of the project have access to members of the group when they mention them in issues or merge requests.
- Project members who are direct or indirect members of the group can see group members listed in addition to members of the project.
2019-10-31 01:37:42 +05:30
2018-03-17 18:26:18 +05:30
## Share project with group lock
2022-10-11 01:57:18 +05:30
It is possible to prevent projects in a group from
2022-08-27 11:52:29 +05:30
[sharing a project with another group ](../members/share_project_with_groups.md ).
2018-03-17 18:26:18 +05:30
This allows for tighter control over project access.
2022-08-27 11:52:29 +05:30
Learn more about [Share with group lock ](../../group/access_and_permissions.md#prevent-a-project-from-being-shared-with-groups ).