如何在sharepoint 2013中在多个组中添加1个用户

如何在sharepoint 2013中在多个组中添加1个用户,sharepoint,sharepoint-2010,sharepoint-2013,sharepoint-2007,csom,Sharepoint,Sharepoint 2010,Sharepoint 2013,Sharepoint 2007,Csom,我想在sharepoint 2013的多个组中添加1个用户。 在1个组中添加1个用户的代码适用于我 Dim clientContext As New ClientContext("http://Server/DomainName/") ' Get the SharePoint web Dim web As Web = clientContext.Web Dim user As User = web.EnsureUser("FirstName

我想在sharepoint 2013的多个组中添加1个用户。 在1个组中添加1个用户的代码适用于我

 Dim clientContext As New ClientContext("http://Server/DomainName/")
        ' Get the SharePoint web  
        Dim web As Web = clientContext.Web
        Dim user As User = web.EnsureUser("FirstName LastName")
        ' Get the specific site group by name  
        Dim group As Group = web.SiteGroups.GetByName("Managment")
        ' Add a user to the specific group  
        group.Users.AddUser(user)
        ' Execute the query to the server  
        clientContext.ExecuteQuery()
现在我想在批量组中添加用户

我如何在这里调用数组

' Get the specific site group by name  
            Dim group As Group = web.SiteGroups.GetByName("Managment")

我正在获取包含所有组名的数组。现在如何在数组中添加组作为集合类型。

使用相同的代码并创建循环

或使用