Get-MgGroup Missing -Filter Option in Version 1.12.1
Get-MgGroup is missing the -filter option - Issue may exist in 1.12 as well but due to issue with -All being removed this issue was not identified until 1.12.1
Get-MgGroup -Filter "DisplayName eq 'MyGroup'"
A parameter cannot be found that matches parameter name 'Filter'.
I'm seeing this as well but only on the beta endpoint. 1.11.1 shows the filter param on the beta endpoint though
Thanks for bringing this to our attention!
We've traced the issue back to CSDL metadata that was used to generate the module. We've unlisted the broken versions as we wait for a fix to be made to the CSDL metadata in https://github.com/microsoftgraph/msgraph-metadata/issues/208.
Please follow uninstallation steps below to remove the unlisted version, then reinstall the latest module (1.11.1):
Uninstall-Module Microsoft.Graph -AllVersions
Get-InstalledModule Microsoft.Graph.* | %{ if($_.Name -ne "Microsoft.Graph.Authentication"){ Uninstall-Module $_.Name } }
Uninstall-Module Microsoft.Graph.Authentication -AllVersions
# Install the latest module (1.11.1)
Install-Module Microsoft.Graph
See https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0#uninstalling-the-sdk.
Sorry for any inconvenience caused.