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.
Will be naming the groups on both end exactly the same.
Need some assistance with the looping. (Struggling to wrap my head around the best way to foreach)