Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
b5142f92
Commit
b5142f92
authored
Mar 14, 2017
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address subgroups docs review
[ci skip]
parent
f35d7a16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
47 deletions
+39
-47
doc/user/group/subgroups/index.md
doc/user/group/subgroups/index.md
+39
-47
No files found.
doc/user/group/subgroups/index.md
View file @
b5142f92
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
> [Introduced][ce-2772] in GitLab 9.0.
> [Introduced][ce-2772] in GitLab 9.0.
With subgroups (a
lso called
nested groups or hierarchical groups) you can have
With subgroups (a
ka
nested groups or hierarchical groups) you can have
up to 20 levels of nested groups, which among other things can help you to:
up to 20 levels of nested groups, which among other things can help you to:
-
**Separate internal / external organizations.**
Since every group
-
**Separate internal / external organizations.**
Since every group
...
@@ -16,50 +16,45 @@ up to 20 levels of nested groups, which among other things can help you to:
...
@@ -16,50 +16,45 @@ up to 20 levels of nested groups, which among other things can help you to:
## Overview
## Overview
A group can have many subgroups inside it, and at the same time a group can have
A group can have many subgroups inside it, and at the same time a group can have
only 1 parent group. It resembles a directory behavior
, like the one below
:
only 1 parent group. It resembles a directory behavior
or a nested items list
:
```
-
Group 1
group0
-
Group 1.1
└── subgroup01a
-
Group 1.2
└── subgroup01b
-
Group 1.2.1
└── subgroup02
-
Group 1.2.2
└── subgroup03
-
Group 1.2.2.1
```
In a real world example, imagine maintaining a GNU/Linux distribution with the
In a real world example, imagine maintaining a GNU/Linux distribution with the
first group being the name of the distro and subsequent groups split like:
first group being the name of the distro and subsequent groups split like:
```
-
Organization Group - GNU/Linux distro
Organization Group - GNU/Linux distro
-
Category Subgroup - Packages
└── Category Subgroup - Packages
-
(project) Package01
└── project - Package01
-
(project) Package02
└── project - Package02
-
Category Subgroup - Software
└── Category Subgroup - Software
-
(project) Core
└── project - Core
-
(project) CLI
└── project - CLI
-
(project) Android app
└── project - Android app
-
(project) iOS app
└── project - iOS app
-
Category Subgroup - Infra tools
└── Category Subgroup - Infra tools
-
(project) Ansible playbooks
└── project - Ansible playbooks
```
Another example of GitLab as a company would be the following:
Another example of GitLab as a company would be the following:
```
-
Organization Group - GitLab
Organization Group - GitLab
-
Category Subroup - Marketing
└── Category Subroup - Marketing
-
(project) Design
└── project - Design
-
(project) General
└── project - General
-
Category Subgroup - Software
└── Category Subgroup - Software
-
(project) GitLab CE
└── project - GitLab CE
-
(project) GitLab EE
└── project - GitLab EE
-
(project) Omnibus GitLab
└── project - Omnibus GitLab
-
(project) GitLab Runner
└── project - GitLab Runner
-
(project) GitLab Pages daemon
└── project - GitLab Pages daemon
-
Category Subgroup - Infra tools
└── Category Subgroup - Infra tools
-
(project) Chef cookbooks
└── project - Chef cookbooks
-
Category Subgroup - Executive team
└── Category Subgroup - Executive team
```
---
---
...
@@ -131,18 +126,15 @@ From the image above, we can deduct the following things:
...
@@ -131,18 +126,15 @@ From the image above, we can deduct the following things:
>**Note:**
>**Note:**
You need to be an Owner of a group in order to be able to add members to it.
You need to be an Owner of a group in order to be able to add members to it.
To override the membership of an ancestor group, simply add the user in the new
To override a user's membership of an ancestor group (the first group they were
subgroup again, but with different permissions.
added to), simply add the user in the new subgroup again, but with different
permissions.
For example, if User0 was first added to group
`
one/two
`
with Developer
For example, if User0 was first added to group
`
group-1/group-1-1
`
with Developer
permissions, then they will inherit those permissions in every other subgroup
permissions, then they will inherit those permissions in every other subgroup
of
`one/two`
. To give them Master access to
`one/two/three`
, you would add them
of
`group-1/group-1-1`
. To give them Master access to
`group-1/group-1-1/group1-1-1`
,
again in that group as Master. Removing them from that group, the permissions
you would add them again in that group as Master. Removing them from that group,
will fallback to those of the ancestor group.
the permissions will fallback to those of the ancestor group.
Note that the higher permission wins, so if in the above example the permissions
where reversed, User0 would have Master access to all groups, even to the one
that was explicitly given Developer access.
## Mentioning subgroups
## Mentioning subgroups
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment