Is it possible to remove a user from the "All People" hidden group in SharePoint Online? Ideally via PowerShell if possible...

Currently you are able to view and manually delete users from a site collection via https://tenant.sharepoint.com/sites/sitename/_layouts/15/people.aspx?MembershipGroupId=0. It would be great if anyone knew how to achieve this via PowerShell.

Any help appreciated!

  • Are you sure that you really want to do that? It might be an easy fix on a current issue, but long term it might really be a royal pain that all people is not all people. Jul 4, 2018 at 15:50
  • Hi Kasper, thank you for your comments. Yes I am sure, removing the entry from the site collection All People group resolves an issue a user is experiencing (sharing error when inviting a user that has previously accessed our tenant). If the issue comes back I will contact Microsoft to take a look at the SPODS.
    – C.Moore
    Jul 5, 2018 at 16:15

1 Answer 1


Using the following PowerShell to remove User from Site Collection in SharePoint online(change the parameters to your parameters):


#Get Credentials to connect
$Cred = Get-Credential

#Connect to SharePoint Online Admin Site
Connect-SPOService -Url $AdminSiteURL -Credential $cred

#Remove user from Site Collection
Remove-SPOUser -Site $SiteURL -LoginName $UserID




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.