Forum Discussion
mcresIT
Sep 28, 2023Copper Contributor
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!
- To retrieve permissions for sharepoint site, you need to have full control permissions on this site. Ask your site collection administrators to give your full control permissions.
https://learn.microsoft.com/en-us/answers/questions/508686/error-attempted-to-perform-an-unauthorized-operati- mcresITCopper Contributorty, yet, it will let me add myself to the Owners or Admins group of the site from the Web Portal? If I can add myself why do I need to ask the Site Collection admin? (just learning) ty
- Any update?