A court has recognized the “right to identity” in a case filed by a man demanding the disclosure of information on someone who allegedly impersonated him online.