Grafana OAUTH auth

  • Grafana helm chart 6.33.0 (Grafana 9.0.5)

  • What are you trying to achieve?

We are using OAUTH2 auth against Okta. This works fine on the basic level, however we would like to assign users to orgs BEFORE the first time they login. Currently we have to have the person login and then have admin add them to an org. We would like to be able to pre-add them based on their ID to the right org/group. In addition to this not being possible, we are stuck at this version of Grafana as any later version block ability to assign users to orgs at all.

  • How are you trying to achieve it?

Ideally by running a script that will use API to add users and assign them to orgs/groups

  • What happened?

Overall, nothing, as have no idea how to achieve this. The go to recommendation is to add users to groups on Okta and use that data, however this is not currently possible (no control over Okta groups at this time).

Also, If we upgrade to newer version of Grafana, “Add to Org” button in user list disappears.