Forum Discussion
ErnestoAlfaro
May 11, 2023Copper Contributor
Remove User from all SharePoint groups with SharePoint Online Management Shell
Hi, I'm having trouble removing a User from ALL SharePoint groups from my organization. I've used the example from https://learn.microsoft.com/en-us/microsoft-365/enterprise/manage-sharepoint-us...
ErnestoAlfaro
May 11, 2023Copper Contributor
Hello AndresGorzelany
Thank you for your response.
I received 2 different errors, but kept appearing like on a loop...
I have Global Admin privileges, so tbh, idk what I'm doing wrong...
May 11, 2023
Is Get-SPOSite returning any site?
- ErnestoAlfaroMay 11, 2023Copper ContributorYes
- May 12, 2023Add your user as a Site Collection admin of one of those sites and try to run that first script against that specific site, I think you need to be sc admin of the site to add and remove users
- ErnestoAlfaroMay 12, 2023Copper ContributorSo being Global Admin is different from SC Admin? I'll have to try this