アクセス権
Users have different abilities depending on the access level they have in a particular group or project. If a user is both in a group's project and the project itself, the highest permission level is used.
On public and internal projects the Guest role is not enforced. All users will be able to create issues, leave comments, and pull or download the project code.
GitLab administrators receive all permissions.
To add or import a user, you can follow the project users and members documentation.
Project
The following table depicts the various user permission levels in a project.
| アクション | Guest | Reporter | Developer | Master | Owner |
|---|---|---|---|---|---|
| 新しい課題を作成する | ✓ | ✓ | ✓ | ✓ | ✓ |
| コメントを作成する | ✓ | ✓ | ✓ | ✓ | ✓ |
| See a list of builds | ✓ 1 | ✓ | ✓ | ✓ | ✓ |
| See a build log | ✓ 1 | ✓ | ✓ | ✓ | ✓ |
| Download and browse build artifacts | ✓ 1 | ✓ | ✓ | ✓ | ✓ |
| View wiki pages | ✓ | ✓ | ✓ | ✓ | ✓ |
| プロジェクトのコードをプルする | ✓ | ✓ | ✓ | ✓ | |
| プロジェクトをダウンロードする | ✓ | ✓ | ✓ | ✓ | |
| コードスニペットを作成する | ✓ | ✓ | ✓ | ✓ | |
| 課題トラッカーを管理する | ✓ | ✓ | ✓ | ✓ | |
| ラベルを管理する | ✓ | ✓ | ✓ | ✓ | |
| See a commit status | ✓ | ✓ | ✓ | ✓ | |
| See a container registry | ✓ | ✓ | ✓ | ✓ | |
| See environments | ✓ | ✓ | ✓ | ✓ | |
| Create new environments | ✓ | ✓ | ✓ | ||
| Use environment terminals | ✓ | ✓ | |||
| Stop environments | ✓ | ✓ | ✓ | ||
| See a list of merge requests | ✓ | ✓ | ✓ | ✓ | |
| Manage/Accept merge requests | ✓ | ✓ | ✓ | ||
| マージリクエストを作成する | ✓ | ✓ | ✓ | ||
| ブランチを作成する | ✓ | ✓ | ✓ | ||
| 保護されていないブランチにプッシュする | ✓ | ✓ | ✓ | ||
| 保護されていないブランチに強制プッシュする | ✓ | ✓ | ✓ | ||
| 保護されていないブランチを削除する | ✓ | ✓ | ✓ | ||
| タグを追加する | ✓ | ✓ | ✓ | ||
| Wikiを書く | ✓ | ✓ | ✓ | ||
| Cancel and retry builds | ✓ | ✓ | ✓ | ||
| Create or update commit status | ✓ | ✓ | ✓ | ||
| Update a container registry | ✓ | ✓ | ✓ | ||
| Remove a container registry image | ✓ | ✓ | ✓ | ||
| マイルストーンを作成する | ✓ | ✓ | |||
| メンバーを追加する | ✓ | ✓ | |||
| 保護されたブランチにプッシュする | ✓ | ✓ | |||
| 保護ブランチへのプッシュを有効/無効にする | ✓ | ✓ | |||
| Turn on/off protected branch push for devs | ✓ | ✓ | |||
| Rewrite/remove Git tags | ✓ | ✓ | |||
| プロジェクトを編集する | ✓ | ✓ | |||
| デプロイキーをプロジェクトに追加する | ✓ | ✓ | |||
| プロジェクトフックを設定する | ✓ | ✓ | |||
| Manage runners | ✓ | ✓ | |||
| Manage build triggers | ✓ | ✓ | |||
| Manage variables | ✓ | ✓ | |||
| 可視性レベルを変更する | ✓ | ||||
| プロジェクトを移譲する | ✓ | ||||
| プロジェクトを削除する | ✓ | ||||
| 保護されているブランチに強制プッシュする 2 | |||||
| 保護されているブランチを削除する 2 |
グループ
Any user can remove themselves from a group, unless they are the last Owner of the group. The following table depicts the various user permission levels in a group.
| アクション | Guest | Reporter | Developer | Master | Owner |
|---|---|---|---|---|---|
| グループを閲覧する | ✓ | ✓ | ✓ | ✓ | ✓ |
| グループを編集する | ✓ | ||||
| グループ内にプロジェクトを作成する | ✓ | ✓ | |||
| メンバーを管理する | ✓ | ||||
| グループを削除する | ✓ |
External Users
In cases where it is desired that a user has access only to some internal or private projects, there is the option of creating External Users. This feature may be useful when for example a contractor is working on a given project and should only have access to that project.
External users can only access projects to which they are explicitly granted access, thus hiding all other internal or private ones from them. Access can be granted by adding the user as member to the project or group.
They will, like usual users, receive a role in the project or group with all the abilities that are mentioned in the table above. They cannot however create groups or projects, and they have the same access as logged out users in all other cases.
An administrator can flag a user as external through the API or by checking the checkbox on the admin panel. As an administrator, navigate to Admin > Users to create a new user or edit an existing one. There, you will find the option to flag the user as external.
By default new users are not set as external users. This behavior can be changed by an administrator under Admin > Application Settings.
プロジェクトの機能
Project features like wiki and issues can be hidden from users depending on which visibility level you select on project settings.
- Disabled: disabled for everyone
- Only team members: only team members will see even if your project is public or internal
- Everyone with access: everyone can see depending on your project visibility level
GitLab CI
GitLab CI permissions rely on the role the user has in GitLab. There are four permission levels it total:
- admin
- master
- developer
- guest/reporter
The admin user can perform any action on GitLab CI in scope of the GitLab
instance and project. In addition, all admins can use the admin interface under
/admin/runners.
| アクション | Guest, Reporter | Developer | Master | Admin |
|---|---|---|---|---|
| See commits and builds | ✓ | ✓ | ✓ | ✓ |
| Retry or cancel build | ✓ | ✓ | ✓ | |
| プロジェクトを削除する | ✓ | ✓ | ||
| Create project | ✓ | ✓ | ||
| Change project configuration | ✓ | ✓ | ||
| Add specific runners | ✓ | ✓ | ||
| Add shared runners | ✓ | |||
| See events in the system | ✓ | |||
| Admin interface | ✓ |
Builds permissions
Note: GitLab 8.12 has a completely redesigned build permissions system. Read all about the new model and its implications.
This table shows granted privileges for builds triggered by specific types of users:
| アクション | Guest, Reporter | Developer | Master | Admin |
|---|---|---|---|---|
| Run CI build | ✓ | ✓ | ✓ | |
| Clone source and LFS from current project | ✓ | ✓ | ✓ | |
| Clone source and LFS from public projects | ✓ | ✓ | ✓ | |
| Clone source and LFS from internal projects | ✓ 3 | ✓ 3 | ✓ | |
| Clone source and LFS from private projects | ✓ 4 | ✓ 4 | ✓ 4 | |
| Push source and LFS | ||||
| Pull container images from current project | ✓ | ✓ | ✓ | |
| Pull container images from public projects | ✓ | ✓ | ✓ | |
| Pull container images from internal projects | ✓ 3 | ✓ 3 | ✓ | |
| Pull container images from private projects | ✓ 4 | ✓ 4 | ✓ 4 | |
| Push container images to current project | ✓ | ✓ | ✓ | |
| Push container images to other projects |