title: How can I get the group name from an Active Directory group with .NET?
body: <p>I have code which as been working against an older Active Directory server and now I have pointed it to a new Windows Server 2008 AD system. Now the group names are coming back with SIDs and not names. I do not know enough about the AD side to know if there is a way to make the new AD server work like the older AD server.</p>
  
  <p>My code is based on the Active Directory Role Provider for BlogEngine.NET on Codeplex.</p>
  
  <p><a href="http://blogengineadrp.codeplex.com/sourcecontrol/network/Show?projectName=BlogEngineADRP&amp;changeSetId=5843#138380" rel="nofollow noreferrer">http://blogengineadrp.codeplex.com/sourcecontrol/network/Show?projectName=BlogEngineADRP&amp;changeSetId=5843#138380</a></p>
  
  <p>I believe this the line that I will need to adjust.</p>
  
  <pre><code>IdentityReferenceCollection irc = ExpandTokenGroups(user).Translate(typeof(NTAccount));
  </code></pre>
  
  <p>Right now ExpandTokenGroups is returning the SID value while Translate has worked to change it into the human readable group name. I would like to know if I should pass in a different type than NTAccount to Translate.</p>
  
  <p>What can I do to get the group name?</p>