I have the following contents in my grafana.ini:
[auth.github]
allow_sign_up = true
allowed_organizations = […]
api_url = https://api.github.com/user
auth_url = https://github.com/login/oauth/authorize
auto_login = true
client_id = $__file{/etc/secrets/auth_github_oauth/client_id}
client_secret = $__file{/etc/secrets/auth_github_oauth/client_secret}
enabled = true
role_attributes_path = 'GrafanaAdmin'
scopes = user:email,read:org
team_ids = …
token_url = https://github.com/login/oauth/access_token
As you can see, I did use an JMESPath expression which does just evaulate to GrafanaAdmin. When logging into Grafana, I always only see myself assigned the Viewer role in my profile. Am I missing some configuration?