-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update group docs to describe subgroups and inherited roles
- Loading branch information
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,38 @@ | ||
# Groups | ||
|
||
_Groups_ are made up of users who have roles. An organization can have one or more groups. Each project can be assigned one or more groups. Groups can be assigned to multiple projects. Groups are created independently of projects, and then assigned to them. | ||
_Groups_ are made up of users who have roles. | ||
An organization can have one or more groups. | ||
Each project can be assigned one or more groups. | ||
Groups can be assigned to multiple projects. | ||
Groups are created independently of projects, and then assigned to them. | ||
|
||
Organizations have a quota to limit the number of groups assigned to it. If you need to change the quota, please contact {{ defaults.helpstring }}. | ||
Organizations have a quota to limit the number of groups assigned to it. | ||
If you need to change the quota, please contact {{ defaults.helpstring }}. | ||
|
||
# Subgroups | ||
|
||
!!! warning | ||
Subgroups and not commonly used in Lagoon, and you probably don't need them. | ||
However, they can be useful in some situations. | ||
|
||
Groups can be nested to an arbitrary depth. | ||
Subgroups are groups which are a child of another group. | ||
|
||
A user's role in an ancestor group is inherited by descendant groups. | ||
|
||
## Subgroups example | ||
|
||
Consider this group structure: | ||
|
||
``` mermaid | ||
--- | ||
title: Subgroup permissions example | ||
--- | ||
erDiagram | ||
CompanyGroup ||--o{ DivisionGroup : child | ||
DivisionGroup ||--o{ TeamGroup : child | ||
``` | ||
|
||
If a User has `maintainer` role in the top level `CompanyGroup`, then they will also have `maintainer` level access to projects which are in the `TeamGroup`. | ||
|
||
Note that this relationship is indirect: the Project is not in the same group as the User, but because the Project is in a _subgroup_ of the User's group, the User has `maintainer` permissions on the Project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters