How to get User's Full name

I want to get the User’s Full name who is logged in to System. Currently I am using system.Environment.UserName. But it’s give me the output as User ID I want to get the User name for this User ID.
Ex - User ID will be 1234 and User name will be ABC. So Currently I am getting 1234 but I want ABC as output.

Refer this

1 Like

I tried this one, but it is not giving me desier output.

@nilesh.mahajan
open XAML in an editor (e.g. notepadd++) and add following to it:
<AssemblyReference>System.DirectoryServices.AccountManagement</AssemblyReference>
have a look here:

and refer to referenc by this link:

3 Likes