Forum Discussion
Naligurtan
Dec 21, 2023Brass Contributor
How to add a MS365 group to many SharePoint sites as Site collection administrator
Hello All, I have over 500 sites in Excel file/.scv. I created a MS365 group and added several users. Now, I want to add this MS365 group to all 500 sites as Site Collection Administrator. ...
Naligurtan
Dec 21, 2023Brass Contributor
Thanks. The problem is I don't have much experience of PowerShell. I would appreciate if you could please write down how to pick up data from .csv file etc.
Dec 21, 2023
Why not give it a try and if you get stuck i'll try to help you 🙂 This is a perfect use-case to learn!
Try to break it down to these steps:
1. Import the CSV to powershell
2. Iterate through the CSV
3. Apply the groups through each iterations
Try to break it down to these steps:
1. Import the CSV to powershell
2. Iterate through the CSV
3. Apply the groups through each iterations