Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Module/Docs/Get-JCUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion PowerShell/JumpCloud Module/Docs/JumpCloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

Expand Down
4 changes: 2 additions & 2 deletions PowerShell/JumpCloud Module/JumpCloud.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: JumpCloud Solutions Architect Team
#
# Generated on: 12/2/2025
# Generated on: 12/31/2025
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'JumpCloud.psm1'

# Version number of this module.
ModuleVersion = '3.0.0'
ModuleVersion = '3.0.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
13 changes: 12 additions & 1 deletion PowerShell/JumpCloud Module/JumpCloud.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 11 additions & 11 deletions PowerShell/JumpCloud Module/Public/Users/Get-JCUser.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Function Get-JCUser () {
function Get-JCUser () {
[CmdletBinding(DefaultParameterSetName = 'SearchFilter')]

param
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions PowerShell/JumpCloud Module/en-Us/JumpCloud-help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10296,6 +10296,7 @@ $reportContent = Get-JCReport -reportID $lastReport.id -type 'csv'</dev:code>
<command:parameterValue required="false" command:variableLength="false">allow_public_key</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">attributes</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">alternateEmail</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">delegatedAuthority</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">recoveryEmail</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">managedAppleId</command:parameterValue>
<command:parameterValue required="false" command:variableLength="false">manager</command:parameterValue>
Expand Down
10 changes: 10 additions & 0 deletions PowerShell/ModuleChangelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading