Forum Discussion

JakobRohde's avatar
JakobRohde
Iron Contributor
Jul 31, 2017

List external users and their status

Hi all

 

I desperately need a way to list all external Azure AD users including their status (if they have accepted the invitation or not), and it would be nice to be able to filter on domain. On TechNet I have found this PowerShell command:

 

Get-SPOExternalUser -Position 0 -PageSize 30 -Filter @testsite.com

It doesn't work though, because it doesn't accept the "@" and if I use the commend without filter, it doen't list information about the users invitational status.

 

 

Another problem is that -PageSize can't exceed 50 - and we have hundreds of external users.

 

Any suggestions?

 

Thanks

Jakob

  • You can use the command below to get the list of all the Office 365 external users (guest users).

     

    Get-MsolUser -All | ? {$_.UserType -eq "Guest"} | Select DisplayName,SignInName | FT

     

    Also, you can use this application to list and export all external users to CSV.

    • JakobRohde's avatar
      JakobRohde
      Iron Contributor

      Thanks Aljohn

       

      This gives me a list of all guest users. What I need is a list of only those guest users that have not yet accepted the invitation. Is that possible?

       

      /Jakob

      • Aljohn Bonifacio's avatar
        Aljohn Bonifacio
        Steel Contributor

        You can check this article as it explains managing access requests and guest users with pending invitation.

Resources