The Atlassian API no longer returns all users using the '%' wildcard search.
Steps To Reproduce
Run: Get-JiraUser -UserName '%'
Get error: No results when searching for user %
Expected behavior
Return a list of all users.
Screenshots Shell
$alljirausers = Get-JiraUser -UserName "%" -MaxResults 1000 -Verbose
VERBOSE: [Get-JiraUser] Function started
VERBOSE: [Get-JiraConfigServer] Function started
VERBOSE: [Get-JiraConfigServer] Complete
VERBOSE: [Get-JiraUser] Processing [%]
VERBOSE: [Invoke-JiraMethod] Function started
VERBOSE: [ConvertTo-GetParameter] Making HTTP get parameter string out of a hashtable
VERBOSE:
Name Value
---- -----
maxResults 1000
username %25
VERBOSE: [Get-JiraSession] Function started
VERBOSE: [Get-JiraSession] Complete
VERBOSE: [Invoke-JiraMethod] Get https://REDACTED.atlassian.net/rest/api/latest/user/search?maxResults=1000&username=%25
VERBOSE: [Test-ServerResponse] Checking response headers for authentication errors
VERBOSE: [Invoke-JiraMethod] Status code: 200
VERBOSE: [Invoke-JiraMethod] Function ended
Get-JiraUser : No results when searching for user %
At line:1 char:17
+ $alljirausers = Get-JiraUser -UserName "%" -MaxResults 1000 -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-JiraUser
VERBOSE: [Get-JiraUser] Complete
Description
The Atlassian API no longer returns all users using the '%' wildcard search.
Steps To Reproduce
Get-JiraUser -UserName '%'
No results when searching for user %
Expected behavior
Return a list of all users.
ScreenshotsShellYour Environment
Versions irrelevant. Change is in Atlassian API.
Possible Solution