Get user's fullname

Hi,

I’m looking for a way to get the user’s fullname in my workflow.
Some interesting answer is given by some closed topics, but they do not work.


The solution to this one gives me:
Message box: Unable to cast object of type ‘System.DirectoryServices.AccountManagement.GroupPrincipal’ to type ‘System.DirectoryServices.AccountManagement.UserPrincipal’.
(Even afterinstalling the externall .dll)

Some ideas?
Best

@yrobert

Welcome back to our uipath community.

Try this.

     Environment.UserName

And also please check below thread.

https://social.msdn.microsoft.com/Forums/en-US/7c568c77-6d19-4018-89ce-757218fdc0fb/get-local-users-full-name?forum=vblanguage

1 Like

No. I require the Full Name that is saved behind the Username

@yrobert

Have you checked in above mentioned thread ?

yes, no help.
PS: the username is just a number. But in Windows has the name of the user behind the username.

Look at this post - you need to use System.DirectoryServices