How to get user.field value in node.twig I have a field_author with different values expert, moderator or contributor

For get this custom USER field in node.twig i using next function

function MYTHEME_preprocess_node(&amp;$variables) {

if ($node = \Drupal::routeMatch()-&gt;getParameter('node')) {
                  $variables['author'] = $node-&gt;getOwner()-&gt;field_fname-&gt;value;
        }
    }
}


And then {{ author }} in node.twig

How to get vlue of this field? For example {{ author.0 or author.1 or author.3}}?

Thanl you for helping!
You can try using variable node

Get user.name 

{{ node.uid.entity.name.value }}