If the user isn't present on the server, ssh won't login in the first place and no reset will happen. So if the statement executes at all, then they must exist.
If you can do 'sudo bash' you have root permissions. The other user possesses a key file which allows him to do so. If your user doesn't have the same key, with the right file permissions on that...