How to create user with a Super Admin role

Hi. I have a question related to the admin and super admins.
Accordingly to the documentation: (http://docs.grafana.org/reference/admin/)

Grafana administrators: These super admins can manage users across all organizations in a Grafana installation. They can also change and access system-wide settings.

But I’m not able to find how to set a user as a super admin. I can’t also find anything related to super_admin in the code.

In general what I wanted to achieve: (multitenancy installation)

  • only super admin can create organizations
  • the admin user is an admin inside OWN organization
  • the admin user is not allowed to create new organizations (this is not critical)

I also have a question regarding roles:

  • is it possible to add custom roles for a user and show/hide certain functionality? (I can modify UI code if needed)
    unfortunately, I can’t find documentation related to that.

Thank you in advance.

only super admin can create organizations

This is default behavior

the admin user is an admin inside OWN organization

Yes, admin role in org is local to org only.

the admin user is not allowed to create new organizations (this is not critical)

that is how it works (unless you enable allow_org_create).

If you are super admin you can go to sidemenu > Admin > Users > edit user > Permissions

Hi,

I have a production environment already set and working. I need to know how to re-create the superadmin role without going through a re-installation. This is urgent, there must be a way.

Thank you,
br
Diogo

Hi! I think that you might find couple solution in this thread. Also, here is a solution in grafana docs: http://docs.grafana.org/administration/cli/#reset-admin-password

1 Like