Get user's fullname


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?


Welcome back to our uipath community.

Try this.


And also please check below thread.

1 Like

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


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