Grafana OIDC via IDP

I’m trying to understand role mapping for grafana oidc

I set up docker grafana alpine distro and managed to setup OIDC easily.

However keep failing of role mapping part, for example role name set up at IDP as “Grafana Editor” which should map with grafana` Default editor role but fails.

So anytime users assigned to IDP role, it gets created as viewer.

So I am little bit lost how to set up role part to match with IDP and documentation little bit lack of good explanation on that part

msg=“Failed to extract role” logger=oauth.generic_oauth error=“failed to search user info JSON response with provided path: \“contains(roles[], ‘Grafana Admin’) && ‘Admin’ || contains(roles[], ‘Grafana Editor’) && ‘Editor’ || ‘Viewer’\“: Invalid type for: , expected: []jmespath.jpType{\“array\“, \“string\“}”

Any help greatly appreciated

Thank you

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