Forum Discussion

Torill S's avatar
Torill S
Copper Contributor
Feb 10, 2017

List external users with access to content on a site

Hello! Does anyone know how I can list the external users that has currently access to content on a site? Get-SPOExternalUser command lists also external users that no longer have access to content. 

 

I removed the permissions for my external user, but he was still listed with "Limited access". I removed him from the showLimitedAccessUsers-view (https://site.com/_layouts/15/user.aspx?showLimitedAccessUsers=true) and controlled that hes permissions on the site ("Check permissions") is "None". Still he comes up as an external user when I run the get-spoexternaluser command let. I had to delete him from the All people group (MembershipGroupId=0) before he disappeared from get-spoexternalusers, but site owners do not have access to remove people from that group. Also, finding people in that group can sometimes be very hard if the site is open to large group of people, so that is not a valid option in most scenarios. 

 

 

Is there a better way to list external users with access to content on a site? Or is there a better way to remove the access so the user without access does not show from the get-spoexternalusers list? 

Resources