0
sharepoint 2013の複数のグループに1人のユーザーを追加します。 1人のユーザーを1グループに追加するこのコードは私のために働いています。sharepoint 2013の複数のグループに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")
すべてのグループ名を持つ配列を取得しています。グループを配列型でコレクション型として追加する方法は次のとおりです。