orich
1
Dear experts,
I grant Grafana Admin rights to my user via URL “http://grafana.staged-by-discourse.com/api/admin/users/{{user_id}}/permissions” with body isGrafanaAdmin: true
I got response message “User permissions updated” with status 200
I do confirm my user has “isAdmin”: true from response to URL http://grafana.staged-by-discourse.com/api/users
But Grafana 7.1.5 GUI => Configuration => Users still displays my user with Viewer role
Thanks for your help.
Best Regards
wlargou
2
Hi,
Please use isAdmin instead.
Check the following:
The isGrafanaAdmin property and the isAdmin property are not the same thing. This is not very well explained in the docs for the API.
Grafana Admin is a super admin: http://docs.grafana.org/administration/permissions/#grafana-admin
The isAdmin property is whether the user is an org admin or not: http://docs.grafana.org/administration/permissions/#admin-role
Reference: Can not change permissions while using grafana rest api · Issue #11945 · grafana/grafana · GitHub
Hope it helps.
Good Luck
system
Closed
3
This topic was automatically closed after 365 days. New replies are no longer allowed.