Issues with Grafana after Migration to PostgreSQL and Upgrade

Unfortunately we have only testing environment with a user …Not exact similar to production ,In production we use AD for authentication .

Also we took inputs from below Community post and did the migration .