Is it possible to have a similar prompt presented for other users? Specifically, I’m interested in creating a user and assigning them a temporary password - and would like to have Grafana ask them to change it the first time they log in.
I poked around the user table in the Grafana DB but nothing there catches my eye as a flag that might trigger this (I couldn’t find any great info on what exactly help_flags1 does). Is the behavior only hard-coded for the admin user?
This is the logic: grafana/LoginCtrl.tsx at main · grafana/grafana · GitHub for showing that screen. We don’t have a way of triggering it in the way Sven is asking about. It is just a simple if statement that checks if the password is admin. Sounds like a reasonable feature request though.
Also, see this related backend code for displaying that home page:
Thanks Matt! Had a quick look - based on this it looks like implementing this systematically would probably involve changes to a few different components (e.g. a DB schema change to include an appropriate flag). For now I’m going with a different workflow that also does the job, so might let this one be.