title: How to retrieve ZipCode from UserProfileManager in SharePoint 2010?
body: <p>I need to know how I can retrieve the <code>ZipCode</code> from Active Directory. Currently, I can get the <code>User</code> and <code>Department</code> but I can't retrieve <code>ZipCode</code>.</p>
  
  <p>In the <a href="http://technet.microsoft.com/en-us/library/hh147513(v=office.14).aspx" rel="nofollow">docs</a> I can't see the <code>ZipCode</code> as a property: </p>
  
  <p>This is my code in C#:</p>
  
  <pre><code>using(SPSite site = new SPSite("Server"))
  {
      site.AllowUnsafeUpdates = true;
      SPServiceContext context = SPServiceContext.GetContext(site);
      UserProfileManager upm = new UserProfileManager(context);
      UserProfile profile = upm.GetUserProfile(GetNodeValue("xPath"));
      String department = profile[PropertyConstants.Department].Value.ToString();
      String position = profile[PropertyConstants.Title].Value.ToString();
      String zipCode = profile[PropertyConstants.?????].Value.ToString();
  }
  </code></pre>