Use Powershell to check on external sharing in SP Online

Sharepoint online enables you to share (sub)sites, lists, libraries or files with external user, when the tenant administrator allows this feature.

Using Powershell, you can check the users that have access to a (sub)site. To do so, you’ll need the Sharepoint Online powershell module. Once, connected, use the connect-sposervice cmdlet to connect to the administrative site of your tenant (https://tenant-admin.sharepoint.com). After that, you can use the get-spoExternalUser cmdlet to retrieve the external users known to the site.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Get-SPOExternalUser -SiteUrl https://meos.sharepoint.com/teams/implementaties -PageSize 50

Email : user@domain.com
DisplayName : John Doe
UniqueId : 1003BFFD8C1EAC5C
AcceptedAs : user@domain.com
WhenCreated : 26-2-2015 08:54:56
InvitedBy : ralph@meos.nl

Email : OtherUser@domain.com
DisplayName : Jane Doe
UniqueId : 1003BFFD89E6E57F
AcceptedAs : otheruser@domain.com
WhenCreated : 26-2-2015 14:28:32
InvitedBy : ralph@meos.nl

As you can see, you’ll see who invited the external user and the live-id / account used to accept te invitation.