DRAG DROP
You are the Office 365 administrator for your company. The company has multiple Microsoft
SharePoint Online sites that are shared with external users. Individual documents have also been
shared from other Microsoft SharePoint Online sites.
The company recently ended collaboration with a vendor named Contoso, Ltd.
You need to revoke all sharing with external users who log in with contoso.com accounts without
affecting sharing with other vendors.
Which three actions should you perform in sequence? To answer, move the appropriate actions
from the list of actions to the answer area and arrange them in the correct order.
Answer: See the explanation
answer is correct
The question is partially flawed: you’d have first to get a list of Contoso users somewhere, before using Remove-SPOExternalUser on them.
I agree, but to get external users you can use Get-SPOExternalUser which is not an option
https://technet.microsoft.com/cs-cz/library/jj730437.aspx
$user = Get-SPOExternalUser -Filter [email protected]
Remove-SPOExternalUser -UniqueIDs @($user.UniqueId)