Forum Discussion
kmktnn
Jul 07, 2021Iron Contributor
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 ...
shehanjp
Jul 12, 2021Iron 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#"}
The "#ext#" part can be changed according to your requirement.
Get-MsolUser -all | where {$_.UserPrincipalName -match "#ext#"}