This resource represents an instance-scoped resource and uses Grafana's admin APIs. It does not work with API tokens or service accounts which are org-scoped. You must use basic auth.
resource "grafana_user" "staff" {
email = "staff.name@example.com"
name = "Staff Name"
login = "staff"
password = "my-password"
is_admin = false
}
email
(String) The email address of the Grafana user.password
(String, Sensitive) The password for the Grafana user.is_admin
(Boolean) Whether to make user an admin. Defaults to false
.login
(String) The username for the Grafana user.name
(String) The display name for the Grafana user.id
(String) The ID of this resource.user_id
(Number) The numerical ID of the Grafana user.Import is supported using the following syntax:
terraform import grafana_user.name "{{ id }}"