What is the Javascript variable name for current user and current dashboard?

I am trying to access current user information and the current dashboard name, however I cannot find any resources on how to access these variables. Particularly when attempting to pass these variables through the Javascript variables. Is the current user and dashboard visible to the Javascript?

EDIT: I can see the dashboard name in the JSON model, how can I access this value? It is “title”.

EDIT 2: Solved. The variables for dashboard name and user name can be accessed by ‘ctrl.dashboard.title’ and ‘ctrl.dashboard.uid’ respectively.