layout | page_title | sidebar_current | description |
---|---|---|---|
grafana |
Grafana: grafana_user |
docs-grafana-user |
The grafana_user resource allows a Grafana user to be created. |
The user resource allows Grafana user management.
~> NOTE on grafana_user
: - this resource uses Grafana's admin APIs for
creating and updating users. This API does not currently work with API Tokens.
You must use Basic Authentication (username and password).
resource "grafana_user" "staff" {
email = "[email protected]"
name = "Staff Name"
login = "staff"
password = "my-password"
is_admin = false
}
The following arguments are supported:
email
- (Required) The email address of the Grafana user.name
- (Optional) The display name for the Grafana user.login
- (Optional) The username for the Grafana user.password
- (Optional) The password for the Grafana user.is_admin
- (Optional, default iffalse
) The admin privileges for the Grafana user.
The following attributes are exported:
id
- The ID of the resource
Existing users can be imported using the user id obtained from the Grafana Web UI under 'Server Admin'.
$ terraform import grafana_user.user_name {user_id}