Dashboard auth via node-red-contrib-users

I want to enable auth via the node-red-contrib-users to be able to auth users working on the Dashboard (ui/) does anyone have an idea how could I manage this? Without converting my dashboard to UI builder!

Generally (example) first i need to implement that the ui can`t work without being authorized by the node-red-contrib-users.
Second, I want (for example) when a dashboard button is pressed that the button pass the msg.username of the user that is authorized.