Render variables printed by {{ dump(user) }} in a template? I have the following code in node.html.twig.

{{ dump(user) }}


I get this output.

object(Drupal\Core\Session\AccountProxy)#523 (4) {
["account":protected]=&gt;
object(Drupal\Core\Session\UserSession)#91 (16) {
["uid":protected]=&gt;
string(1) "1"
["roles":protected]=&gt;
array(2) {
  [0]=&gt;
  string(13) "authenticated"
  [1]=&gt;
  string(13) "administrator"
}
["access":protected]=&gt;
string(10) "1513942493"
["name"]=&gt;
string(5) "admin"
["preferred_langcode":protected]=&gt;
string(2) "en"
["preferred_admin_langcode":protected]=&gt;
NULL
["mail":protected]=&gt;
string(18) "noreply@imi.org.uk"
["timezone":protected]=&gt;
string(13) "Europe/Berlin"
["langcode"]=&gt;
string(2) "en"
["pass"]=&gt;
string(55) "$S$E7IRVipuFHHectBpj8GkGZGPHlFWNQKG9ydDoRpwBDcCbzklpVaj"
["status"]=&gt;
string(1) "1"
["created"]=&gt;
string(10) "1513920795"


I want to render value of ["created"]=&gt;string(10) "1513920795" and ["uid":protected]=&gt;string(1) "1". What is the syntax or code to output them from the template?
You can just get the user ID and when the account was created respectively with {{ user.id }} and {{ user.created }}. With {{ user.created | date("d F Y") }} you print the timestamp with the date format you specify.

Consider user as an object. You can access all the values the same way. 

See also the Twig documentation.