Skip to content

Commit c239398

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
Rolled back script to fix failing test
1 parent 44c584f commit c239398

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Authentication/Authentication/custom/Find-MgGraphPermission.ps1

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@ function Find-MgGraphPermission {
2222
[cmdletbinding(positionalbinding=$false, HelpUri = 'https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.authentication/find-mggraphpermission')]
2323
[OutputType('Microsoft.Graph.Custom.Permission')]
2424
param (
25-
[parameter(ParameterSetName='Search', position=0, ValueFromPipeline=$true, Mandatory=$true, HelpMessage='The search string to use to find permissions')]
25+
[parameter(ParameterSetName='Search', position=0, ValueFromPipeline=$true, Mandatory=$true)]
2626
[String] $SearchString,
2727

28-
[parameter(ParameterSetName='Search', HelpMessage='Search for permissions that exactly match the specified name')]
28+
[parameter(ParameterSetName='Search')]
2929
[Switch] $ExactMatch,
3030

31-
[parameter(ParameterSetName='PermissionType', HelpMessage='The type of permissions to search for', Mandatory=$false)]
3231
[ValidateSet('Any', 'Delegated', 'Application')]
3332
[String] $PermissionType = 'Any',
34-
35-
[parameter(ParameterSetName='Online', HelpMessage='Search for permissions in the online service', Mandatory=$false)]
33+
3634
[Switch] $Online,
3735

38-
[parameter(ParameterSetname='All', HelpMessage='Return all permissions', Mandatory=$false)]
36+
[parameter(ParameterSetname='All')]
3937
[Switch] $All
4038
)
4139

0 commit comments

Comments
 (0)