From 8fb8a9492b1a5a60c8101f770db3e7498c4663cc Mon Sep 17 00:00:00 2001 From: Mathijs de Ruiter <33999622+EUCTechTopics@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:59:38 +0200 Subject: [PATCH 1/3] added Post to methods for pagination --- PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 index 8f32410..bb75227 100644 --- a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 +++ b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 @@ -112,7 +112,7 @@ function Invoke-IDNWRestMethod { # Pagination loop do { # Combine parameters into query string - if ($Method -eq "GET") { + if ($Method -in @("GET","POST") { $queryString = ($UrlParams.GetEnumerator() | ForEach-Object { [string]::Format("{0}={1}", $_.Key, [uri]::EscapeUriString($_.Value)) }) -join "&" @@ -226,4 +226,4 @@ function Invoke-IDNWRestMethod { # Return all results Remove-Variable -Name Headers -Force Write-Output $AllResults -} \ No newline at end of file +} From 849f1d97f309e124fac0e3d72fad5af5ac853ea9 Mon Sep 17 00:00:00 2001 From: Mathijs de Ruiter <33999622+EUCTechTopics@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:00:05 +0200 Subject: [PATCH 2/3] Update PSIdentityNow.psd1 --- PSIdentityNow/PSIdentityNow.psd1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PSIdentityNow/PSIdentityNow.psd1 b/PSIdentityNow/PSIdentityNow.psd1 index f02e9c9..770a4f3 100644 --- a/PSIdentityNow/PSIdentityNow.psd1 +++ b/PSIdentityNow/PSIdentityNow.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSIdentityNow.psm1' # Version number of this module. - ModuleVersion = '0.5.1' + ModuleVersion = '0.5.2' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -128,4 +128,4 @@ # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' -} \ No newline at end of file +} From 83c20f90baf6cc8f6ecce6fb6151bd8ab00f43d4 Mon Sep 17 00:00:00 2001 From: Mathijs de Ruiter <33999622+EUCTechTopics@users.noreply.github.com> Date: Mon, 8 Sep 2025 11:05:04 +0200 Subject: [PATCH 3/3] Update Invoke-IDNWRestMethod.ps1 --- PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 index bb75227..b77b600 100644 --- a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 +++ b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 @@ -112,7 +112,7 @@ function Invoke-IDNWRestMethod { # Pagination loop do { # Combine parameters into query string - if ($Method -in @("GET","POST") { + if ($Method -in @("GET","POST")) { $queryString = ($UrlParams.GetEnumerator() | ForEach-Object { [string]::Format("{0}={1}", $_.Key, [uri]::EscapeUriString($_.Value)) }) -join "&"