Configure Admin users as Grafana Admins
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=31125) </details> <!--IssueSummary end--> ### Problem to solve If you use Grafana with Gitlab as OAuth provider and disable regular logins (the current default), all users are configured as Viewer. This means all the dashboards are read-only and you can't edit anything. To solve this, you need to re-enable the admin account (requires a `gitlab-ctl reconfigure`), login as admin and give access to another "regular" OAuth user. ### Proposal Automatically provision admin users (on Gitlab) as Grafana Admin users. This should also be done on update. Alternatively, add a configuration option to provision some users as Admin or Editor. ### Permissions and Security There shouldn't be any security issue. Gitlab Admins are already all powerful. ### Steps - [x] Upstream issue https://github.com/grafana/grafana/issues/28892 - [x] Upstream PR https://github.com/grafana/grafana/pull/30025 - [ ] Configure omnibus https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/6401 - [ ] Update Grafana in omnibus
issue