Refactor get user by uri