Get User Object from username

Hi

 

   I am trying to use the Deactivate User Smart Service in a process model  that is going to be triggerd by the system (not a user per se) and it requieres the user object of the user that is going to be deactivated.

 

  I have the username text, but i need the User type

How can i get it?

 

 The function user only reurns specified properties but doesn't return the actual User

 

Thanks in advance

  Discussion posts and replies are publicly visible