Create Admin User and Add it to All Orgs

  • What Grafana version and what operating system are you using?
    Grafana V7.0.5

  • What are you trying to achieve?
    Create Admin User and Add it to All Orgs. It can be through API or any other method.

  • How are you trying to achieve it?
    It could be via API

  • What happened?
    Don´t have a clear method on how to achieve that

  • What did you expect to happen?
    Create user that is in every Org

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    No errors

  • Did you follow any online instructions? If so, what is the URL?

I was thinkin it might need to be done via API. Any help?

Yup, doing it via the API is the way to go. You would need to write a script that (a) gets a list of all orgs (relevant endpoint: Organization HTTP API | Grafana Labs) and (b) loops over them and adds the user to each one (relevant endpoint: Organization HTTP API | Grafana Labs). Hope that helps!

1 Like

This topic was automatically closed after 365 days. New replies are no longer allowed.