Have an specific issue.
Have local AD with different security groups. I want to add members to sharepoint online groups.
Am not quite sure how to attack this issue. Assume the best way is to export all the groups to an csv and use this to add members to the groups in SP.
Need some assistance with the looping. (Struggling to wrap my head around the best way to foreach)
What I go :
Get-ADGroup -SearchBase "OU=Sec_group,DC=contoso,DC=Local" -filter * | select name | Sort-Object name | export-csv C:\report\adgroups.csv
This looks relevant to your question: http://powershell.office.com/script-samples/assign-group-members-to-sharepoint-site
You must be logged in to reply to this topic.