diff --git a/PowerShell/JumpCloud Module/Docs/Get-JCCommand.md b/PowerShell/JumpCloud Module/Docs/Get-JCCommand.md index 516038b30..8bb9c7499 100644 --- a/PowerShell/JumpCloud Module/Docs/Get-JCCommand.md +++ b/PowerShell/JumpCloud Module/Docs/Get-JCCommand.md @@ -188,7 +188,7 @@ Allows you to return select properties on JumpCloud user objects. Specifying wha Type: System.String[] Parameter Sets: SearchFilter Aliases: -Accepted values: aiGenerated, command, name, launchType, commandType, trigger, scheduleRepeatType, listensTo, organization, commandRunners, schedule, shell, timeout, sudo, template, scheduleYear, timeToLiveSeconds, files, user, systems, description, filesS3 +Accepted values: aiGenerated, command, name, launchType, commandType, trigger, scheduleRepeatType, listensTo, organization, commandRunners, schedule, shell, timeout, sudo, template, scheduleYear, timeToLiveSeconds, files, user, systems, description, filesS3, templatingRequired Required: False Position: Named diff --git a/PowerShell/JumpCloud Module/Docs/JumpCloud.md b/PowerShell/JumpCloud Module/Docs/JumpCloud.md index 95c90c059..6e387380a 100644 --- a/PowerShell/JumpCloud Module/Docs/JumpCloud.md +++ b/PowerShell/JumpCloud Module/Docs/JumpCloud.md @@ -2,7 +2,7 @@ Module Name: JumpCloud Module Guid: 31c023d1-a901-48c4-90a3-082f91b31646 Download Help Link: https://github.com/TheJumpCloud/support/wiki -Help Version: 3.0.1 +Help Version: 3.0.2 Locale: en-Us --- diff --git a/PowerShell/JumpCloud Module/Docs/Set-JCSettingsFile.md b/PowerShell/JumpCloud Module/Docs/Set-JCSettingsFile.md index f0b2b10b4..cb7be978d 100644 --- a/PowerShell/JumpCloud Module/Docs/Set-JCSettingsFile.md +++ b/PowerShell/JumpCloud Module/Docs/Set-JCSettingsFile.md @@ -14,8 +14,8 @@ Updates the JumpCloud Module Settings File ## SYNTAX ``` -Set-JCSettingsFile [-parallelOverride ] - [-JCEnvironmentLocation ] [-moduleBannerMessageCount ] [] +Set-JCSettingsFile [-moduleBannerMessageCount ] + [-parallelOverride ] [-JCEnvironmentLocation ] [] ``` ## DESCRIPTION diff --git a/PowerShell/JumpCloud Module/JumpCloud.psd1 b/PowerShell/JumpCloud Module/JumpCloud.psd1 index b366c4600..1e867beab 100644 --- a/PowerShell/JumpCloud Module/JumpCloud.psd1 +++ b/PowerShell/JumpCloud Module/JumpCloud.psd1 @@ -3,7 +3,7 @@ # # Generated by: JumpCloud Solutions Architect Team # -# Generated on: 12/31/2025 +# Generated on: 1/22/2026 # @{ @@ -12,7 +12,7 @@ RootModule = 'JumpCloud.psm1' # Version number of this module. -ModuleVersion = '3.0.1' +ModuleVersion = '3.0.2' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/PowerShell/JumpCloud Module/Public/Commands/Get-JCCommand.ps1 b/PowerShell/JumpCloud Module/Public/Commands/Get-JCCommand.ps1 index 4e5c9e527..3ab33635f 100644 --- a/PowerShell/JumpCloud Module/Public/Commands/Get-JCCommand.ps1 +++ b/PowerShell/JumpCloud Module/Public/Commands/Get-JCCommand.ps1 @@ -21,7 +21,7 @@ function Get-JCCommand () { [ValidateSet('minute', 'hour', 'day', 'week', 'month')] [string]$scheduleRepeatType, [Parameter(ValueFromPipelineByPropertyName, ParameterSetName = 'SearchFilter', HelpMessage = 'Allows you to return select properties on JumpCloud commands objects. Specifying what properties are returned can drastically increase the speed of the API call with a large data set. Valid properties that can be returned are: ''command'', ''name'',''launchType'',''commandType'',''trigger'',''scheduleRepeatType'',''listensTo'',''organization'',''commandRunners'',''schedule'',''shell'',''timeout'',''sudo'',''template'',''scheduleYear'',''timeToLiveSeconds'',''files'',''user'',''systems'', ''description'', ''filesS3''')] - [ValidateSet('aiGenerated', 'command', 'name', 'launchType', 'commandType', 'trigger', 'scheduleRepeatType', 'listensTo', 'organization', 'commandRunners', 'schedule', 'shell', 'timeout', 'sudo', 'template', 'scheduleYear', 'timeToLiveSeconds', 'files', 'user', 'systems', 'description', 'filesS3')] + [ValidateSet('aiGenerated', 'command', 'name', 'launchType', 'commandType', 'trigger', 'scheduleRepeatType', 'listensTo', 'organization', 'commandRunners', 'schedule', 'shell', 'timeout', 'sudo', 'template', 'scheduleYear', 'timeToLiveSeconds', 'files', 'user', 'systems', 'description', 'filesS3', 'templatingRequired')] [String[]]$returnProperties, [Parameter(Mandatory, ValueFromPipelineByPropertyName, diff --git a/PowerShell/JumpCloud Module/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.ps1 b/PowerShell/JumpCloud Module/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.ps1 index 68ccd87ab..e595fd6d1 100644 --- a/PowerShell/JumpCloud Module/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.ps1 +++ b/PowerShell/JumpCloud Module/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.ps1 @@ -1,4 +1,4 @@ -Function Get-JCConfiguredTemplatePolicy { +function Get-JCConfiguredTemplatePolicy { [CmdletBinding(DefaultParameterSetName = 'ReturnAll')] param ( [Parameter( @@ -50,8 +50,8 @@ Function Get-JCConfiguredTemplatePolicy { } } end { - if ($response.records) { - return $response.records + if ($response.results) { + return $response.results } else { return $response diff --git a/PowerShell/JumpCloud Module/Tests/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.Tests.ps1 b/PowerShell/JumpCloud Module/Tests/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.Tests.ps1 index 995eef029..d76821ec6 100644 --- a/PowerShell/JumpCloud Module/Tests/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.Tests.ps1 +++ b/PowerShell/JumpCloud Module/Tests/Public/Policies/PolicyGroupTemplates/Get-JCConfiguredTemplatePolicy.Tests.ps1 @@ -1,5 +1,4 @@ -# TODO: card to fix the issue CUT-4867 -Describe -Tag:('MSP') 'Get-JCConfiguredTemplatePolicy' -Skip { +Describe -Tag:('MSP') 'Get-JCConfiguredTemplatePolicy' { # Note for these tests, there's not a public endpoint to delete these objects # tests in this file will assume that configuredTemplatePolicy objects exist It "Lists all configured template policies" { diff --git a/PowerShell/JumpCloud Module/Tests/Public/Systems/Get-JCSystemInsights.Tests.ps1 b/PowerShell/JumpCloud Module/Tests/Public/Systems/Get-JCSystemInsights.Tests.ps1 index 27beac18e..947043ec9 100644 --- a/PowerShell/JumpCloud Module/Tests/Public/Systems/Get-JCSystemInsights.Tests.ps1 +++ b/PowerShell/JumpCloud Module/Tests/Public/Systems/Get-JCSystemInsights.Tests.ps1 @@ -3,8 +3,8 @@ BeforeAll { $ErrorActionPreference = 'Stop' # Continue (Default), Ignore, Inquire, SilentlyContinue, Stop, Suspend } # TODO: Waiting on the API team to fix an issue with the authorized_key endpoint marking CUT-4892 as the card to revert these changes -Describe -Tag:('JCSystemInsights') "Get-JCSystemInsights Tests" -Skip { - Function Get-JCSystemInsightsTestCases($System) { +Describe -Tag:('JCSystemInsights') "Get-JCSystemInsights Tests" { + function Get-JCSystemInsightsTestCases($System) { # Retrieve objects to test with $SystemInsightsPrefix = 'Get-JcSdkSystemInsight'; $SystemInsightsDataSet = [Ordered]@{} @@ -14,10 +14,10 @@ Describe -Tag:('JCSystemInsights') "Get-JCSystemInsights Tests" -Skip { $HelpDescription = $Help.Description.Text $FilterDescription = ($Help.parameters.parameter | Where-Object { $_.Name -eq 'filter' }).Description.Text $FilterNames = ($HelpDescription | Select-String -Pattern:([Regex]'(?<=\ `)(.*?)(?=\`)') -AllMatches).Matches.Value - $Operators = ($FilterDescription -Replace ('Supported operators are: ', '')).Trim() - If ([System.String]::IsNullOrEmpty($HelpDescription) -or [System.String]::IsNullOrEmpty($FilterNames) -or [System.String]::IsNullOrEmpty($Operators)) { + $Operators = ($FilterDescription -replace ('Supported operators are: ', '')).Trim() + if ([System.String]::IsNullOrEmpty($HelpDescription) -or [System.String]::IsNullOrEmpty($FilterNames) -or [System.String]::IsNullOrEmpty($Operators)) { Write-Error ('Get-JCSystemInsights parameter help info is missing.') - } Else { + } else { $Filters = $FilterNames | ForEach-Object { $FilterName = $_ $Operators | ForEach-Object { @@ -47,7 +47,7 @@ Describe -Tag:('JCSystemInsights') "Get-JCSystemInsights Tests" -Skip { # Command = "Get-JCSystemInsights -Table:('$TableName') -Filter:('$($Filter)');" # } } - Return $SystemInsightsTestCases + return $SystemInsightsTestCases } It '' -TestCases:(Get-JCSystemInsightsTestCases -System:($PesterParams_SystemLinux, $PesterParams_SystemMac, $PesterParams_SystemWindows)) { # Write-Host ("Command: $Command") diff --git a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml index 6c8f504e3..8af6d5c57 100644 --- a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml +++ b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml @@ -4569,6 +4569,7 @@ PS C:\> $BackupJcOrganizationResults.User systems description filesS3 + templatingRequired System.String[] diff --git a/PowerShell/ModuleChangelog.md b/PowerShell/ModuleChangelog.md index 68b204393..5fa78c0f0 100644 --- a/PowerShell/ModuleChangelog.md +++ b/PowerShell/ModuleChangelog.md @@ -1,3 +1,15 @@ +## 3.0.2 + +Release Date: January 22, 2026 + +#### RELEASE NOTES + +``` +Adds new property to Get-JCCommand returnProperties param +Fixes results for Get-JCConfiguredTemplatePolicy +Fixes to module test suite +``` + ## 3.0.1 Release Date: December 31, 2025