Skip to content

Commit 9786aa0

Browse files
authored
Merge pull request #361 from lmf-mx/hotfix/fix-username-wildcard-search
Hotfix/fix username wildcard search
2 parents 1e49128 + 1b040e1 commit 9786aa0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

JiraPS/Public/Get-JiraUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function Get-JiraUser {
33
[CmdletBinding( DefaultParameterSetName = 'Self' )]
44
param(
55
[Parameter( Position = 0, Mandatory, ValueFromPipelineByPropertyName, ParameterSetName = 'ByUserName' )]
6-
[ValidateNotNullOrEmpty()]
6+
[AllowEmptyString()]
77
[Alias('User', 'Name')]
88
[String[]]
99
$UserName,

docs/en-US/commands/Get-JiraUser.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ Get-JiraUser -UserName user1 -Exact
7171

7272
Returns information about user user1
7373

74+
### EXAMPLE 5
75+
76+
```powershell
77+
Get-JiraUser -UserName ""
78+
```
79+
80+
Returns information about all users. The empty string "" matches all users.
81+
7482
## PARAMETERS
7583

7684
### -UserName

0 commit comments

Comments
 (0)