title: How to add AD group to SharePoint 2010 SPGroup programmatically?
body: <p>Been trying to add an AD group to an SPGroup programmatically and it's not working.</p>
  
  <p>I've tried:</p>
  
  <pre><code>SPGroup.AddUsers("myADgroup");
  </code></pre>
  
  <p>and</p>
  
  <pre><code>SPGroupCollection.Add(groupName, currentUser, "myADgroup", groupDescription);
  </code></pre>
  
  <p>I've tried it both with domain and without.</p>
  
  <p>Any ideas?</p>