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")
모든 그룹 이름을 가진 배열을 얻고 있습니다. 그룹을 배열 형식으로 컬렉션에 추가하는 방법.