entra-powershell icon indicating copy to clipboard operation
entra-powershell copied to clipboard

Find-EntraPermission needs to have 2 parameter sets as Find-MgGraphPermission

Open alexandair opened this issue 1 year ago • 0 comments

Find-MgGraphPermission has two parameter sets. -All and -SearchString are in separated sets.

Find-EntraPermission has only one parameter set. A user can tab-complete -SearchString and -All, try to use them both, and command will fail at the runtime.

PS> Find-EntraPermission -SearchString "user.read" -All
Find-MgGraphPermission: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.

alexandair avatar Sep 26 '24 18:09 alexandair