Jan 10 2021 02:05 AM
Hi everyone,
maybe i am doing something wrong but after trying various commands - i just don't get it.
As a former SP2013 Admin i want to execute a PowerShell that adds certain users or groups to SharePoint Groups.
Script is written but i come across a problem that i had earlier and i decided to fix it this time ;)
In the old world i took the farm admin and shoot.... done.
New world (i am global admin) i do not have the permission to add a user to a group because i am no site colladmin or owner.
So do i need to add myself to the sitecollection via set-sposite and then perform the steps? And if yes. Is there a PNP equivalent? (tried but gave me 401)
Who should be the Site Coll Admin for most of the sites?
Best regards
Stephan
Feb 19 2021 05:35 AM
SolutionFeb 19 2021 05:35 AM
Solution