add org_id to the resource grafana_user
Currently, this version does not allow the resource "grafana_user" to assign the user to an organization. This commit adds this feature.
The idea seems good to me. Though:
- We should also get this information when we read the user
- It should also be tested (adding the attribute to verified attributes in the acceptance tests)
To make it clear, it is ok to have the Org ID here because users is an admin resource. Explained here: https://github.com/grafana/terraform-provider-grafana/issues/59#issuecomment-996935572
Also please note that the documentation is out of date, please run go generate to update the docs.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Valentin Naina seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
I'll close this because it's been inactive for so long. Managing an org's users is already possible using the grafana_organization resource: https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/organization