Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 709 Bytes

ADMIN.md

File metadata and controls

40 lines (31 loc) · 709 Bytes

Admin Related API Methods


The following methods are all relating to Grafana administration

Get current admin settings:
g.get_admin_settings()
Update a user's permissions:
# Give user global admin privilege in Grafana
g.update_user_permissions(6, {"isGrafanaAdmin" => false})

# Give user admin privilege in their current organization
g.update_user_permissions(6, "Admin")
Deleting a user:
g.delete_user(6)
Creating a user:
g.create_user({
  "name": "User",
  "email": "user@graf.com",
  "login": "user",
  "password": "userpassword"
})
Updating user password:
g.update_user_pass(6, 'VerySecretPassword')