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 Microsoft Learn. Connect-SPOService -Url https://contoso-admin.sharepoint....
May 11, 2023
Hello,
What errors did you receive for the first script?
What errors did you receive for the first script?
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, 2023Is 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