How To Remove External Users From SharePoint Online

In this blog, we will see the steps involved for remove external user from your Office 365 subscription. There is a chance that you may have to remove the external users after adding them to the member groups.

Please ensure that you connect to SharePoint Online PowerShell to execute the commands given below.
  1. $credentials = Get-Credential  
  2.   
  3. Connect-SPOService -Url https://mysharepoint.admin.sharepoint.com -Credential $credentials 
  4.   
  5. $ExternalUser = Get-SPOExternalUser -filter [email protected]  
  6.   
  7. Remove-SPOExternalUser -UniqueIDs @($ExternalUser .UniqueId)   
The next step is to remove the external users from user information list, so that they can’t be visible in SharePoint searches. Below are the steps, which are required to be done to remove the external users from the user information List.
  1. Construct a SharePoint URL, as shown at https://mysite.sharepoint.com/_layouts/15/people.aspx/membershipGroupId=0
  2. Select the external user from the list.
  3. Click Remove User Permissions on the ribbon.
Ebook Download
View all
Learn
View all