Set default permissions for GitLab Oauth

Hi everyone!
I’m trying to allow OAuth on my Grafana instance (6.5.3) using our team private GitLab. I want to set default permission ‘Admin’ for all persons who can sign up (and sign in) using this authorization.
Is it possible without using any custom API-scripts?
I tried to add role_attribute_path = 'Admin' in my grafana.ini, but still everyone got ‘Viewer’ role on sign up.

Solved it with using auto_assign_org_role setting.

1 Like

Hello. I am trying to do the same. What does your final config look like ?

in grafana.ini file:

#all new registered users will be Admins 
auto_assign_org_role = 'Admin'
1 Like