Skip to content

Instantly share code, notes, and snippets.

@davidohana
Last active June 17, 2020 10:48
Show Gist options
  • Save davidohana/cc4042f34b972ac38da9ad367a0819f2 to your computer and use it in GitHub Desktop.
Save davidohana/cc4042f34b972ac38da9ad367a0819f2 to your computer and use it in GitHub Desktop.
grafana_server_url = "https://localhost:3000"
add_user_endpoint = grafana_server_url + "/api/admin/users/"
user_dict = {
"name": "David Ohana",
"email": "NotMyRealEmail@ibm.com",
"login": "NotMyRealEmail@ibm.com",
"password": "dummypass",
}
response = requests.post(
add_user_endpoint,
json=user_dict,
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