How to remove External users from SharePoint Online ?

Hello SharePointers,

In this blog, we will see the steps involved to 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 below commands.

$credentials = Get-Credential

Connect-SPOService -Url https://mysharepoint.admin.sharepoint.com -Credential $cred

$ExternalUser = Get-SPOExternalUser -filter removeme@gmail.com

Remove-SPOExternalUser -UniqueIDs @($ExternalUser .UniqueId)

Happy SharePointing 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *