I am trying to create a workitem through code. Currently I am using the following code to set Assigned to.
wi.Fields["System.AssignedTo"].Value = "TfsUser display name";
Display new is the only value that you can use to at this field in a work item.
You can query the user identity system and retrieve the display name from TFS for the user that you want.