terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

Support adding users to Grafana Cloud

Open JackLuo0826 opened this issue 3 years ago • 5 comments

When adding users with grafana_user and basic auth, after terraform plan, it always display error message saying username or password is not correct. Tried on several different Grafana instances/stacks and admin accounts, none of them worked.

Terraform Version

  • Terraform: 1.3.2
  • Terraform Grafana Provider: 1.30.0
  • Grafana: v9.2.2-eb6f0ffe76 (eb6f0ffe76)

Affected Resource(s)

Please list the resources as a list, for example:

  • grafana_user

Terraform Configuration Files

{ "grafana-access": [ { "team": "PP", "users": [ "[email protected]", "[email protected]" ] } ] }

Expected Behavior

New users should be added to Grafana Cloud.

Actual Behavior

Displayed error saying incorrect username or password using basic auth.

Steps to Reproduce

  1. Use grafana_user with basic auth
  2. terraform apply

JackLuo0826 avatar Nov 01 '22 20:11 JackLuo0826

You can’t add users to Cloud with the provider yet

julienduchesne avatar Nov 01 '22 20:11 julienduchesne

Hi Julien,

Thanks for the timely reply.

Is there any plan to add this feature? If so, where can we track the progress? We are very keen to add it to our module when it is available. Thank you very much!

Kind Regards, Jack

On Wed, 2 Nov 2022 at 09:29, Julien Duchesne @.***> wrote:

You can’t add users to Cloud with the provider yet

— Reply to this email directly, view it on GitHub https://github.com/grafana/terraform-provider-grafana/issues/709#issuecomment-1299099776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABR6HX6RVZGHM4P7TT6NGFDWGF4QZANCNFSM6AAAAAARUND5BQ . You are receiving this because you authored the thread.Message ID: @.***>

JackLuo0826 avatar Nov 02 '22 00:11 JackLuo0826

There is no issue for this yet. I think it's a good feature request. I'd have to check if the users API is publicly accessible

julienduchesne avatar Nov 03 '22 01:11 julienduchesne

Thank you, Julien.

This feature will save us a lot of time manually adding/inviting new users. Please double-check regarding the API and let us know of any updates. :)

Kind Regards, Jack

On Thu, 3 Nov 2022 at 14:17, Julien Duchesne @.***> wrote:

There is no issue for this yet. I think it's a good feature request. I'd have to check if the users API is publicly accessible

— Reply to this email directly, view it on GitHub https://github.com/grafana/terraform-provider-grafana/issues/709#issuecomment-1301540970, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABR6HX3J4KCIR6AHNYB2YH3WGMHCHANCNFSM6AAAAAARUND5BQ . You are receiving this because you authored the thread.Message ID: @.***>

JackLuo0826 avatar Nov 03 '22 01:11 JackLuo0826

Blocked. Waiting on official API support: https://grafana.com/docs/grafana-cloud/api-reference/cloud-api/

julienduchesne avatar Jun 29 '23 16:06 julienduchesne