Forum Discussion
Ivaylo Valkov
Apr 21, 2023Copper Contributor
Powershell add multiple Azure security groups to site
Hi All,
I am having a CSV file with SP Online sites created by M365 groups and Azure security groups.
My goal is to add the security groups to SP sites and I saw it is possible with PnP.Powershell module but the tricky part is I am SP admin(M365 Global Admin) but not part of the sites/M365 groups so I cannot authenticate in the site via PnP commands (Get-PnPGroup: Attempted to perform an unauthorized operation.)
Is there another way to achieve that?
Regards
Ivaylo
No RepliesBe the first to reply