title: Add multiple users to an AD group *quickly* using AccountManagement
body: <p>I have a very large number of users that I need to add to an AD group. I have all the users <code>SAMAccountNames</code> stored in a datagridview.</p>
  
  <p>The code below works but slowly. It's as if it's querying each user directly when I call <code>g.members.add</code>. Is there a more efficient way to add them?</p>
  
  <pre><code>For Each r As DataGridViewRow In dgvFinalUsers.Rows
     Dim userName As String = r.Cells(0).Value
     If Not g.Members.Contains(ctx, IdentityType.SamAccountName, userName) Then
        g.Members.Add(ctx, IdentityType.SamAccountName, userName)
        i += 1
        Debug.Print(i)
     End If
  Next
  g.save
  </code></pre>