getUserInfo function

Gets information about the current user