Skip to content

Commit 8c40ead

Browse files
authored
add Create user to README.md
1 parent a86bdbe commit 8c40ead

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ from grafana_api.grafana_face import GrafanaFace
2525

2626
grafana_api = GrafanaFace(auth='abcde....', host='api.my-grafana-host.com')
2727

28+
# Create user
29+
user = grafana_api.admin.create_user({"name": "User", "email": "[email protected]", "login": "user", "password": "userpassword", "OrgId": 1})
30+
2831
# Search dashboards based on tag
2932
grafana_api.search.search_dashboards(tag='applications')
3033

0 commit comments

Comments
 (0)