From b2a4aace30b60db0ffb850a617f88d1a10031cf5 Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Wed, 31 Dec 2025 10:16:10 -0700 Subject: [PATCH 1/5] 3.0.1 --- PowerShell/JumpCloud Module/JumpCloud.psd1 | 2 +- PowerShell/JumpCloud Module/JumpCloud.psm1 | 13 ++++++++++++- PowerShell/ModuleChangelog.md | 10 ++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/PowerShell/JumpCloud Module/JumpCloud.psd1 b/PowerShell/JumpCloud Module/JumpCloud.psd1 index c10fd8d29..5091767cb 100644 --- a/PowerShell/JumpCloud Module/JumpCloud.psd1 +++ b/PowerShell/JumpCloud Module/JumpCloud.psd1 @@ -12,7 +12,7 @@ RootModule = 'JumpCloud.psm1' # Version number of this module. -ModuleVersion = '3.0.0' +ModuleVersion = '3.0.1' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/PowerShell/JumpCloud Module/JumpCloud.psm1 b/PowerShell/JumpCloud Module/JumpCloud.psm1 index 472790cd3..a70fc896c 100644 --- a/PowerShell/JumpCloud Module/JumpCloud.psm1 +++ b/PowerShell/JumpCloud Module/JumpCloud.psm1 @@ -11,11 +11,22 @@ foreach ($Import in @($Public + $Private)) { # Check to see if parallel processing is available for the session $global:JCConfig = Get-JCSettingsFile -$PSDefaultParameterValues = $global:PSDefaultParameterValues.Clone() +# $PSDefaultParameterValues = $global:PSDefaultParameterValues.Clone() if ($global:JCConfig['JCEnvironment'].Location) { Write-Host "Setting JCEnvironment to: $($global:JCConfig['JCEnvironment'].Location) from JCModule settings file" -ForegroundColor Green $env:JCEnvironment = $global:JCConfig['JCEnvironment'].Location } +switch ($env:JCEnvironment) { + 'STANDARD' { + $Global:PSDefaultParameterValues['*-JcSdk*:ApiHost'] = 'api' + $Global:PSDefaultParameterValues['*-JcSdk*:ConsoleHost'] = 'console' + } + 'EU' { + $Global:PSDefaultParameterValues['*-JcSdk*:ApiHost'] = 'api.eu' + $Global:PSDefaultParameterValues['*-JcSdk*:ConsoleHost'] = 'console.eu' + } + default {} +} # set the JCEnvironment from the settings file if it exists # Set default values for function parameters diff --git a/PowerShell/ModuleChangelog.md b/PowerShell/ModuleChangelog.md index 791d7f644..68b204393 100644 --- a/PowerShell/ModuleChangelog.md +++ b/PowerShell/ModuleChangelog.md @@ -1,3 +1,13 @@ +## 3.0.1 + +Release Date: December 31, 2025 + +#### RELEASE NOTES + +``` +Resolves an issue with importing the SDKs fo the EU region +``` + ## 3.0.0 Release Date: December 2, 2025 From f6abaf94ad7981794e1d5f80c9d0334fd4a7908c Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Wed, 31 Dec 2025 10:22:18 -0700 Subject: [PATCH 2/5] module date --- PowerShell/JumpCloud Module/JumpCloud.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShell/JumpCloud Module/JumpCloud.psd1 b/PowerShell/JumpCloud Module/JumpCloud.psd1 index 5091767cb..b366c4600 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/2/2025 +# Generated on: 12/31/2025 # @{ From 8b5d5e542b6dea00565800d155714a3a0f093f1c Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Wed, 31 Dec 2025 10:23:16 -0700 Subject: [PATCH 3/5] help version --- PowerShell/JumpCloud Module/Docs/JumpCloud.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerShell/JumpCloud Module/Docs/JumpCloud.md b/PowerShell/JumpCloud Module/Docs/JumpCloud.md index 977420f2d..95c90c059 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.0 +Help Version: 3.0.1 Locale: en-Us --- From 2f93415dcaa2a08badc4be380361f5bec219c3c4 Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Wed, 31 Dec 2025 10:28:01 -0700 Subject: [PATCH 4/5] return delegatedAuthority --- .../Public/Users/Get-JCUser.ps1 | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/PowerShell/JumpCloud Module/Public/Users/Get-JCUser.ps1 b/PowerShell/JumpCloud Module/Public/Users/Get-JCUser.ps1 index d147a75f4..b17885238 100644 --- a/PowerShell/JumpCloud Module/Public/Users/Get-JCUser.ps1 +++ b/PowerShell/JumpCloud Module/Public/Users/Get-JCUser.ps1 @@ -1,4 +1,4 @@ -Function Get-JCUser () { +function Get-JCUser () { [CmdletBinding(DefaultParameterSetName = 'SearchFilter')] param @@ -72,8 +72,8 @@ Function Get-JCUser () { [ValidateSet('created', 'password_expiration_date')] [String]$filterDateProperty, - [Parameter(ValueFromPipelineByPropertyName, ParameterSetName = 'SearchFilter', HelpMessage = 'Allows you to return select properties on JumpCloud user 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: ''created'', ''password_expiration_date'', ''account_locked'', ''activated'', ''addresses'', ''allow_public_key'', ''attributes'', ''alternateEmail'',''email'', ''enable_managed_uid'', ''enable_user_portal_multifactor'', ''externally_managed'', ''firstname'', ''lastname'', ''ldap_binding_user'', ''passwordless_sudo'', ''password_expired'', ''password_never_expires'', ''phoneNumbers'', ''samba_service_user'', ''ssh_keys'', ''sudo'', ''totp_enabled'', ''unix_guid'', ''unix_uid'', ''managedAppleId'',''manager'',''username'',''suspended'',''recoveryEmail'',''systemUsername'',''relationships'',''public_key'',''external_password_expiration_date'',''disableDeviceMaxLoginAttempts'',''password'',''state''')] - [ValidateSet('created', 'password_expiration_date', 'account_locked', 'activated', 'addresses', 'allow_public_key', 'attributes', 'alternateEmail', 'recoveryEmail', 'managedAppleId', 'manager', 'email', 'enable_managed_uid', 'enable_user_portal_multifactor', 'externally_managed', 'firstname', 'lastname', 'ldap_binding_user', 'passwordless_sudo', 'password_expired', 'password_never_expires', 'phoneNumbers', 'samba_service_user', 'ssh_keys', 'sudo', 'totp_enabled', 'unix_guid', 'unix_uid', 'username', 'middlename', 'displayname', 'jobTitle', 'employeeIdentifier', 'department', 'costCenter', 'company', 'employeeType', 'description', 'location', 'external_source_type', 'external_dn', 'suspended', 'mfa', 'recoveryEmail', 'systemUsername', 'relationships', 'public_key', 'external_password_expiration_date', 'disableDeviceMaxLoginAttempts', 'password', 'state', 'restrictedFields')] + [Parameter(ValueFromPipelineByPropertyName, ParameterSetName = 'SearchFilter', HelpMessage = 'Allows you to return select properties on JumpCloud user 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: ''created'', ''password_expiration_date'', ''account_locked'', ''activated'', ''addresses'', ''allow_public_key'', ''attributes'', ''alternateEmail'',''delegatedAuthority'',''email'', ''enable_managed_uid'', ''enable_user_portal_multifactor'', ''externally_managed'', ''firstname'', ''lastname'', ''ldap_binding_user'', ''passwordless_sudo'', ''password_expired'', ''password_never_expires'', ''phoneNumbers'', ''samba_service_user'', ''ssh_keys'', ''sudo'', ''totp_enabled'', ''unix_guid'', ''unix_uid'', ''managedAppleId'',''manager'',''username'',''suspended'',''recoveryEmail'',''systemUsername'',''relationships'',''public_key'',''external_password_expiration_date'',''disableDeviceMaxLoginAttempts'',''password'',''state''')] + [ValidateSet('created', 'password_expiration_date', 'account_locked', 'activated', 'addresses', 'allow_public_key', 'attributes', 'alternateEmail', 'delegatedAuthority', 'recoveryEmail', 'managedAppleId', 'manager', 'email', 'enable_managed_uid', 'enable_user_portal_multifactor', 'externally_managed', 'firstname', 'lastname', 'ldap_binding_user', 'passwordless_sudo', 'password_expired', 'password_never_expires', 'phoneNumbers', 'samba_service_user', 'ssh_keys', 'sudo', 'totp_enabled', 'unix_guid', 'unix_uid', 'username', 'middlename', 'displayname', 'jobTitle', 'employeeIdentifier', 'department', 'costCenter', 'company', 'employeeType', 'description', 'location', 'external_source_type', 'external_dn', 'suspended', 'mfa', 'recoveryEmail', 'systemUsername', 'relationships', 'public_key', 'external_password_expiration_date', 'disableDeviceMaxLoginAttempts', 'password', 'state', 'restrictedFields')] [String[]]$returnProperties, #New parameters as of 1.8 release @@ -127,8 +127,8 @@ Function Get-JCUser () { [String]$recoveryEmail ) - DynamicParam { - If ((Get-PSCallStack).Command -like '*MarkdownHelp') { + dynamicparam { + if ((Get-PSCallStack).Command -like '*MarkdownHelp') { $filterDateProperty = 'created' } if ($filterDateProperty) { @@ -377,18 +377,18 @@ Function Get-JCUser () { if (($param.Value -match '.+?\*$') -and ($param.Value -match '^\*.+?')) { # Front and back wildcard - (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)$([regex]::Escape($Value))" }) + (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)$([regex]::Escape($Value))" }) } elseif ($param.Value -match '.+?\*$') { # Back wildcard - (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)^$([regex]::Escape($Value))" }) + (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)^$([regex]::Escape($Value))" }) } elseif ($param.Value -match '^\*.+?') { # Front wild card - (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)$([regex]::Escape($Value))`$" }) + (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)$([regex]::Escape($Value))`$" }) } elseif ($param.Value -match '^[-+]?\d+$') { # Check for integer value - (($Search.filter).GetEnumerator()).add($param.Key, $([regex]::Escape($Value))) + (($Search.filter).GetEnumerator()).add($param.Key, $([regex]::Escape($Value))) } else { - (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)(^$([regex]::Escape($Value))`$)" }) + (($Search.filter).GetEnumerator()).add($param.Key, @{'$regex' = "(?i)(^$([regex]::Escape($Value))`$)" }) } } # End foreach @@ -400,7 +400,7 @@ Function Get-JCUser () { (($Search.filter).GetEnumerator()).add('recoveryEmail.address', $recoveryEmail ) } if ($stateValue) { - (($Search.filter).GetEnumerator()).add('state', $stateValue ) + (($Search.filter).GetEnumerator()).add('state', $stateValue ) } $SearchJSON = $Search | ConvertTo-Json -Compress -Depth 4 From e2b07cb1fe57dd6d021ba439ed08f42091aac5c4 Mon Sep 17 00:00:00 2001 From: Joe Workman Date: Wed, 31 Dec 2025 10:44:33 -0700 Subject: [PATCH 5/5] Get-JCUser updated documentation --- PowerShell/JumpCloud Module/Docs/Get-JCUser.md | 2 +- PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerShell/JumpCloud Module/Docs/Get-JCUser.md b/PowerShell/JumpCloud Module/Docs/Get-JCUser.md index f5869a7bf..f21298860 100644 --- a/PowerShell/JumpCloud Module/Docs/Get-JCUser.md +++ b/PowerShell/JumpCloud Module/Docs/Get-JCUser.md @@ -597,7 +597,7 @@ Valid properties that can be returned are: 'created', 'password_expiration_date' Type: System.String[] Parameter Sets: SearchFilter Aliases: -Accepted values: created, password_expiration_date, account_locked, activated, addresses, allow_public_key, attributes, alternateEmail, recoveryEmail, managedAppleId, manager, email, enable_managed_uid, enable_user_portal_multifactor, externally_managed, firstname, lastname, ldap_binding_user, passwordless_sudo, password_expired, password_never_expires, phoneNumbers, samba_service_user, ssh_keys, sudo, totp_enabled, unix_guid, unix_uid, username, middlename, displayname, jobTitle, employeeIdentifier, department, costCenter, company, employeeType, description, location, external_source_type, external_dn, suspended, mfa, recoveryEmail, systemUsername, relationships, public_key, external_password_expiration_date, disableDeviceMaxLoginAttempts, password, state, restrictedFields +Accepted values: created, password_expiration_date, account_locked, activated, addresses, allow_public_key, attributes, alternateEmail, delegatedAuthority, recoveryEmail, managedAppleId, manager, email, enable_managed_uid, enable_user_portal_multifactor, externally_managed, firstname, lastname, ldap_binding_user, passwordless_sudo, password_expired, password_never_expires, phoneNumbers, samba_service_user, ssh_keys, sudo, totp_enabled, unix_guid, unix_uid, username, middlename, displayname, jobTitle, employeeIdentifier, department, costCenter, company, employeeType, description, location, external_source_type, external_dn, suspended, mfa, recoveryEmail, systemUsername, relationships, public_key, external_password_expiration_date, disableDeviceMaxLoginAttempts, password, state, restrictedFields Required: False Position: Named diff --git a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml index 22c90d34f..6c8f504e3 100644 --- a/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml +++ b/PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml @@ -10296,6 +10296,7 @@ $reportContent = Get-JCReport -reportID $lastReport.id -type 'csv' allow_public_key attributes alternateEmail + delegatedAuthority recoveryEmail managedAppleId manager