I would like to use our existing OAuth infrastructure to assign specific OAuth users to (Grafana-) Admins roles based on information inside the auth_token like the LDAP Admin binding configuration.
Unfortunately I have neither found any information about this on the docs or on this forum.
this is currently not possible. There is an open feature request for this. Not something the core team is working on but is likely to be implemented some day
I was just trying to achieve similar functionality through Auth0. I can provide some user metadata through Auth0 and I see they are included in the id_token that Grafana receives. However, Grafana does not seem to parse those metadata or make any use of them. Specifically I included metadata defining the “Company” or the “Role”.