Allow read-only access to groups and projects pages in the admin area
What does this MR do and why?
Allow read-only access to groups and projects pages in the admin area for non-admin users with custom admin roles enabling read_admin_groups and read_admin_projects permissions.
References
Implements Permission to view custom attributes (or groups... (#534449 - closed).
Screenshots or screen recordings
| Page | Admin | Regular user with read_admin_groups and read_admin_projects custom admin permissions |
|---|---|---|
| Groups list | ![]() |
![]() |
| Group page | ![]() |
![]() |
| Projects list | ![]() |
![]() |
| Project page | ![]() |
![]() |
How to set up and validate locally
- Enable
custom_admin_rolesfeature flag - Login with an admin, enable admin mode (doc), enter admin mode, and go to http://localhost:9393/admin/application_settings/roles_and_permissions/
- Create a custom admin role with
View GroupsandView Projectspermissions - Assign custom admin role to a non-admin user (doc)
- Login with the user
- Go to Admin area and verify that the groups, projects, group details, and project details pages are accessible and look like the screenshots.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Daniel Tian







