'Grafana removing users mapping into organizations

I have installed and run the grafana container with version grafana 8.4.4 using docker method. In grafana. Ini, have set up auth.genericauth for the parameters of client, seceret.. Etc. Once logged in grafana, it's showing users and orgs. Once I have added user to different org it works. But after signout and signin back to grafana, the user are removed from assinged org. Only it's shows default org ' main org'. Can you help me how to resolve this..



Solution 1:[1]

You need configure that:

oauth_skip_org_role_update_sync = true

https://github.com/grafana/grafana/blob/6c468daabcce01c833201a1bb5d9d3afdd14d271/conf/defaults.ini#L416

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jan Garaj