From b3bb612e4ac04fbc0a1a29eaa2f62c4161462535 Mon Sep 17 00:00:00 2001 From: Lenard Fudala Date: Thu, 11 Jul 2019 15:20:58 -0500 Subject: [PATCH 1/2] Fix username wildcard search --- JiraPS/Public/Get-JiraUser.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JiraPS/Public/Get-JiraUser.ps1 b/JiraPS/Public/Get-JiraUser.ps1 index aa18cc30..2dc3f689 100644 --- a/JiraPS/Public/Get-JiraUser.ps1 +++ b/JiraPS/Public/Get-JiraUser.ps1 @@ -3,7 +3,7 @@ function Get-JiraUser { [CmdletBinding( DefaultParameterSetName = 'Self' )] param( [Parameter( Position = 0, Mandatory, ValueFromPipelineByPropertyName, ParameterSetName = 'ByUserName' )] - [ValidateNotNullOrEmpty()] + [AllowEmptyString()] [Alias('User', 'Name')] [String[]] $UserName, From 1b040e134e8f8c12bf872c8649246791f898c806 Mon Sep 17 00:00:00 2001 From: Lenard Fudala Date: Thu, 11 Jul 2019 16:15:59 -0500 Subject: [PATCH 2/2] Update docs for user wildcard search --- docs/en-US/commands/Get-JiraUser.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/en-US/commands/Get-JiraUser.md b/docs/en-US/commands/Get-JiraUser.md index fa55f7eb..e9e8e869 100644 --- a/docs/en-US/commands/Get-JiraUser.md +++ b/docs/en-US/commands/Get-JiraUser.md @@ -71,6 +71,14 @@ Get-JiraUser -UserName user1 -Exact Returns information about user user1 +### EXAMPLE 5 + +```powershell +Get-JiraUser -UserName "" +``` + +Returns information about all users. The empty string "" matches all users. + ## PARAMETERS ### -UserName