Forum Discussion
Azure Group search needs wild cards
- Jul 31, 2019
Searching/filtering in the Graph API is very limited, and it doesn't look like we're getting any meaningful improvements there for the foreseeable future. I would suggest avoid using anything that relies on the Graph (AAD portal, AAD PowerShell) and use alternatives where possible (MSOnline module, Exchange admin center or PowerShell).
Searching/filtering in the Graph API is very limited, and it doesn't look like we're getting any meaningful improvements there for the foreseeable future. I would suggest avoid using anything that relies on the Graph (AAD portal, AAD PowerShell) and use alternatives where possible (MSOnline module, Exchange admin center or PowerShell).
Hi VasilMichev ,
Thank you for your quick response. I couldn't get the
It took me a while to figure out the syntax for filtering the list of Unified Groups so Exchange Admin center web GUI to load so I tried to find some PowerShell code that would find my search term within the Team displayName property.
I couldn't get the -Filter -contains operator working with get-UnifiedGroup , but I did get the following working:
- Start the "Microsoft Exchange Online PowerShell Module"
- Login to exchange, you'll need security rights on your account to do this e.g. Exchange Admin Role assigned to your account
- Then run the following
Get-UnifiedGroup -Filter {DisplayName -like "*dunedin*"} | Format-List DisplayName,EmailAddresses,Notes,ManagedBy,AccessType
The code runs quickly in my tenancy (almost a thousand groups) so this works for me.
Does anyone at Microsoft have a comment on why search in the Admin screens doesn't do a :
- Like "*searchTerm*" search
rather than the current
- Like "searchTerm*" search ????
- badsectorDec 09, 2020Brass Contributor
Dorje-McKinnonI bet that searching uses oData queries but not all of them. It probably doesn't have "contains" option, only "startswith". Azure table storage doesn't have even that. Why Microsoft are not willing to give us normal searching is beyond my grasp.