Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/Feature ? Grafana super admin can't be also admin of orgs #13710

Closed
darkweaver87 opened this issue Oct 17, 2018 · 2 comments
Closed

Bug/Feature ? Grafana super admin can't be also admin of orgs #13710

darkweaver87 opened this issue Oct 17, 2018 · 2 comments

Comments

@darkweaver87
Copy link

darkweaver87 commented Oct 17, 2018

Hello,

I'm using grafana 5.3.1 on debian stretch with ldap feature. I would like all my grafana super admins be also admins (a.k.a. role "Admin") of orgs.
So I have one AD group and reading at

extUser.IsGrafanaAdmin = group.IsGrafanaAdmin
if I set only one Admin role on this group, it will not benefit of being super admin.

Configuration to reproduce:

[[servers.group_mappings]]
group_dn = "CN=Grafana_Admins,OU=GRAFANA,OU=APPLICATIONS,DC=xxx,DC=xx"
org_role = "Admin"
grafana_admin = true

[[servers.group_mappings]]
group_dn = "CN=Grafana_Admins,OU=GRAFANA,OU=APPLICATIONS,DC=xxx,DC=xx"
org_role = "Admin"
org_id = 1

[[servers.group_mappings]]
group_dn = "CN=Grafana_Admins,OU=GRAFANA,OU=APPLICATIONS,DC=xxx,DC=xx"
org_role = "Admin"
org_id = 2

So it's an open question: bug or feature ?

@torkelo
Copy link
Member

torkelo commented Oct 17, 2018

I guess that line should be

 extUser.IsGrafanaAdmin = extUser.IsGrafanaAdmin || group.IsGrafanaAdmin 

@darkweaver87
Copy link
Author

Thanks for your feedback. My colleague and I are working on it :-)

@torkelo torkelo added this to the 5.3.2 milestone Oct 18, 2018
@torkelo torkelo closed this as completed Oct 18, 2018
marefr added a commit that referenced this issue Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants