Forum Discussion

kmktnn's avatar
kmktnn
Iron Contributor
Jul 07, 2021

How to search guests?

I have a basic question 🙂

 

I cannot find a way to search for partial information of guests accounts in the list of guests of the Admin center or users in AAD.

 

The only search that works well is when we search with the whole email account or the first letters. Do you have a trick to search for the domain or first name or last name?

  • shehanjp's avatar
    shehanjp
    Iron Contributor
    You can run this command after connecting to MSOL module in PowerShell.
    The "#ext#" part can be changed according to your requirement.

    Get-MsolUser -all | where {$_.UserPrincipalName -match "#ext#"}
  • kmktnn's avatar
    kmktnn
    Iron Contributor

    kmktnn I found a way in AAD by adding a filter on the domain in the users list. You have to enter the whole domain.

     

Share

Resources