title: Get the User Id - SharePoint 2010
body: <p>I have a column that has names of the user. The column type is Single line of Text and the user name is stored in the format LastName, FirstName;</p>
  
  <p>I would like to get the user id and email address of the stored user name. </p>
  
  <p>I tried  </p>
  
  <pre><code> string fieldValue = item["ProjectManager"] as string;
   SPFieldUserValueCollection users = new SPFieldUserValueCollection(item.Web, fieldValue);
   if (users != null)
   {
       /* The users.count is always zero */
        foreach (SPFieldUserValue user in users)
        {
          if (user.User != null)
          {
          }
        }
     }
  </code></pre>
  
  <p>I cannot change the column type to Person or Group and it would remain as Single Line of Text. Please let me know how can I achieve this . I have been trying this for couple of hours now.</p>