Get username in custom user twig template
The display name is not a field you can configure in {{ content }}. You can get it directly from the user entity:

{{ user.displayname }}


Reference for the php method: AccountInterface::getDisplayName