SharePoint has many different variations. Along with the others, SharePoint online makes it extremely easy to share sites, lists, libraries or documents with external parties.When you want to share something you can use the sharing feature on SharePoint, enter an email address and a custom message and click send.
When it comes to removing the external user from the site collection, and not just their access but all reference to that user so that they don’t appear in the suggested contacts, this requires a few steps.
Pre-requisites
First you will need to download the SharePoint Online Management Shell.
http://www.microsoft.com/en-gb/download/details.aspx?id=35588
Remove a user from the SharePoint Site Collection and SP User Profile list
Go to the site where the user is a member.
Site Settings > People & Groups
Edit the URL and change the “MembershipGroupId=<nn>” to “MembershipGroupId=0“
Select the radio box next to a user and click Actions > Delete Users from Site Collection
Remove the user profile from the SharePoint Admin Center.
Start the SharePoint Online management shell.
Run: Connect-SpoService https://domain-admin.sharepoint.com
Sign-in with a global administrator account.
Check the user account you want to remove by running: Get-SPOExternalUser -Filter <emailaddress>
Run: $user = Get-SPOExternalUser -Filter <emailaddress>
Run: Remove-SPOExternalUser -UniqueIDs @($user.UniqueId)
These steps will remove all reference to the user account.
Additional Cmdlets
- To view a list of users on the first page, run: Get-SPOExternalUser -position 0 -PageSize 5
- To view a list of users on the second page, run: Get-SPOExternalUser -position 1 -PageSize 50
Resources
https://technet.microsoft.com/en-us/library/jj730438.aspx
http://technet.microsoft.com/en-us/library/jj730437(v=office.15).aspx
Have a look at our related Sharepoint blogs here:
Displaying Sharepoint online lists to parent or sub-sites
