I know how to get the logged in user name, but how would one get the actual name associated with the logged in user?

ex:
username - domain\jdoe
full name - john doe

how does one get the full name?