Jan 17 2020 12:26 PM
I am trying to export details of all external users from the complete SharePoint online tenant.
Since the out of the box command just generates 50 users, I am trying the following command:
Try {
For ($x=0;;$x+=50) {
$ExternalUsers += Get-SPOExternalUser -PageSize 50 -Position $x -ErrorAction Stop | Export-csv C:\temp\Externalusers.csv
}
}
Catch {}
$ExternalUsers
however I want to export it to csv?
Can someone assist in this?
Jan 21 2020 03:10 AM
@Test SharePoint Perhaps this solution might help: https://vladtalkstech.com/2018/03/create-a-report-of-sharepoint-online-external-users-with-powershel...