doc/user/group/subgroups/_index.md
{{< details >}}
{{< /details >}}
You can organize GitLab groups into subgroups. You can use subgroups to:
Subgroups can:
For example:
%%{init: { "fontFamily": "GitLab Sans" }}%%
graph TD
accTitle: Parent and subgroup nesting
accDescr: How parent groups, subgroups, and projects nest.
subgraph "Parent group"
subgraph "Subgroup A"
subgraph "Subgroup A1"
G["Project E"]
end
C["Project A"]
D["Project B"]
E["Project C"]
end
subgraph "Subgroup B"
F["Project D"]
end
end
Prerequisites:
To view the subgroups of a group:
In the hierarchy list, public groups with private subgroups have an expand option ({{< icon name="chevron-down" >}}), which indicates the group has nested subgroups. All users can view the expand option ({{< icon name="chevron-down" >}}), but only direct or inherited members of the private subgroup can view the private group.
If you prefer to keep information about the presence of nested subgroups private, you should add private subgroups only to private parent groups.
Prerequisites:
[!note] You cannot host a GitLab Pages subgroup website with a top-level domain name. For example,
subgroupname.example.io.
To create a subgroup:
Prerequisites:
To change who can create subgroups on a group:
For more information, view the permissions table.
{{< history >}}
webui_members_inherited_users. Disabled by default.webui_members_inherited_users removed in GitLab 17.4. Members of invited groups displayed by default.{{< /history >}}
When you add a member to a group, that member is also added to all subgroups of that group. The member's permissions are inherited from the group into all subgroups.
Subgroup members can be:
%%{init: { "fontFamily": "GitLab Sans" }}%%
flowchart RL
accTitle: Subgroup membership
accDescr: How users become members of a subgroup - through direct, indirect, or inherited membership.
subgraph Group A
A(Direct member)
B{{Shared member}}
subgraph Subgroup A
H(1#46; Direct member)
C{{2#46; Inherited member}}
D{{Inherited member}}
E{{3#46; Shared member}}
end
A-->|Direct membership of Group A\nInherited membership of Subgroup A|C
end
subgraph Group C
G(Direct member)
end
subgraph Group B
F(Direct member)
end
F-->|Group B\nshared with\nGroup A|B
B-->|Inherited membership of Subgroup A|D
G-->|Group C shared with Subgroup A|E
Group permissions for a member can be changed only by:
To see if a member has inherited the permissions from a parent group:
Members list for an example subgroup Four:
In the previous screenshot:
Members can be filtered by inherited or direct membership.
Users with the Owner role in a subgroup can add members to it.
You can't give a user a role in a subgroup that is lower than the roles the user has in parent groups. To override a user's role in a parent group, add the user to the subgroup again with a higher role. For example:
Mentioning subgroups (@<subgroup_name>) in epics, issues, commits, and merge requests
notifies all direct members of that group. Inherited members of a subgroup are not notified by mentions.
Mentioning works the same as for projects and groups, and you can choose the group of members to be notified.