Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.3 KB

user.html.md

File metadata and controls

52 lines (38 loc) · 1.3 KB
layout page_title sidebar_current description
grafana
Grafana: grafana_user
docs-grafana-user
The grafana_user resource allows a Grafana user to be created.

grafana_user

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).

Example Usage

resource "grafana_user" "staff" {
  email    = "[email protected]"
  name     = "Staff Name"
  login    = "staff"
  password = "my-password"
  is_admin = false
}

Argument Reference

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 if false) The admin privileges for the Grafana user.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource

Import

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}