I have the OAuth configured (for self hosted GitLab) and Role attribute path configured to assign role by groups from id_token.
contains(groups_direct[*], 'devops') && 'GrafanaAdmin' || 'Viewer'
And now I need to block access for users, which have external: true
in the user info json. (from read_user from gitlab). How do I access the data. Neither of these works:
external == 'true' && 'None' || 'Viewer'
info.external == 'true' && 'None' || 'Viewer'
user_info.external == 'true' && 'None' || 'Viewer'
userinfo.external == 'true' && 'None' || 'Viewer'
read_user.external == 'true' && 'None' || 'Viewer'
How can I find out what variables are available for the role_attribute_path? I can see the jsons in debug logs, but there is no naming for them.