Last active
June 17, 2020 10:54
-
-
Save davidohana/c9b1432f994434241a5633f6475cefe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
permission_doc = {"isGrafanaAdmin": True} | |
grafana_server_url = "https://localhost:3000" | |
permission_end_point = "{}/api/admin/users/{}/permissions".format(grafana_server_url, user_id) | |
response = requests.put(permission_end_point, | |
json=permission_doc, | |
verify=False, | |
auth=('admin', grafana_admin_password)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment