This data source uses Grafana's admin APIs for reading users which does not currently work with API Tokens. You must use basic auth.
resource "grafana_user" "test_all_users" {
email = "all_users@example.com"
name = "Testing grafana_users"
login = "test-grafana-users"
password = "my-password"
}
data "grafana_users" "all_users" {
depends_on = [
grafana_user.test_all_users,
]
}
id
(String) The ID of this resource.users
(Set of Object) The Grafana instance's users. (see below for nested schema)users
Read-Only:
email
(String)id
(Number)is_admin
(Boolean)login
(String)name
(String)