You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit baa4ca8
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/build/project-access-control/index.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,22 @@ Access is not divided into read access and write access.
30
30
A user who can access a project can use it without restrictions, which includes changing its groups.
31
31
32
32
A project that a user cannot access is not listed in the workspace.
33
-
Opening a link to such a project shows an error message instead of the project.
33
+
Opening a link to such a project shows the message **Access to project is forbidden!** instead of the project.
34
+
The message lists the groups assigned to the project and the groups of the current user.
35
+
36
+
{ class="bordered" width="88%" }
34
37
35
38
## View the groups of a project
36
39
37
40
Open the project.
38
41
The **Access control** section shows the assigned groups under **Groups**.
42
+
43
+
{ class="bordered" width="41%" }
44
+
39
45
If no groups are assigned, the section shows the message "No groups configured. This project is visible to all users." instead.
40
46
47
+
{ class="bordered" width="41%" }
48
+
41
49
## Restrict a project to groups
42
50
43
51
1. Open the project.
@@ -48,19 +56,30 @@ If no groups are assigned, the section shows the message "No groups configured.
48
56
The **Groups** field marks each group that the current user is a member of with "(member)".
49
57
For administrators, the groups are not marked.
50
58
59
+
{ class="bordered" width="56%" }
60
+
51
61
To make the project accessible to all users again, remove all groups from the **Groups** field and click **Save**.
52
62
53
63
### Add a group that is not listed
54
64
55
65
The list of groups in the **Groups** field can be incomplete.
56
-
To assign a group that is not listed, enter its name in the **Groups** field and select **Add custom group**.
66
+
To assign a group that is not listed, enter its name in the **Groups** field and select the **Add custom group** entry, which repeats the entered name.
67
+
68
+
{ class="bordered" width="56%" }
57
69
58
70
The name must match the name of the group exactly, including capitalization.
59
71
A misspelled group matches no user, so a warning lists the custom groups for review before saving.
60
72
73
+
{ class="bordered" width="56%" }
74
+
61
75
### Avoid losing access
62
76
63
77
A warning appears when a group is added that the current user is not a member of.
78
+
The selected groups show whether the current user is a member: a green group with an open lock is a group of the user, an orange group with a closed lock is not.
79
+
80
+
{ class="bordered" width="56%" }
81
+
82
+
The warning remains when a group of the user is selected as well.
64
83
After saving, the current user keeps access only if at least one of the selected groups is a group of this user.
65
84
Administrators do not see this warning, because they keep access to all projects.
66
85
@@ -78,6 +97,11 @@ The **Groups** field is also part of the dialogs that create, clone, and import
78
97
- When a project is imported, the field is empty.
79
98
If the import replaces an existing project, the field is not shown and the project keeps its groups.
80
99
100
+
{ class="bordered" width="47%" }
101
+
102
+
A project created with `cmemc project create` or through the API without groups is assigned the groups of the account that creates it.
103
+
It is therefore accessible only to members of these groups and to administrators.
104
+
81
105
!!! warning "Groups are not part of a project export"
82
106
83
107
By default, a project export does not contain the groups of the project.
0 commit comments