Forum Discussion

mcresIT's avatar
mcresIT
Copper Contributor
Sep 28, 2023

I can add myself to any Site Owners group via the web but getting Access Denied using PowerShell

 

 

 

Add-SPOUser -Site "https://mysite" -Group "mySite Owners" -LoginName myemail

 

 

Add-SPOUser : Attempted to perform an unauthorized operation.

 

I can successfully add other users to sites I'm already Owner using the above CMD.

 

Thank you!

Resources