diff --git a/scripts/automation/Radius/Changelog.md b/scripts/automation/Radius/Changelog.md new file mode 100644 index 000000000..51356bb3e --- /dev/null +++ b/scripts/automation/Radius/Changelog.md @@ -0,0 +1,30 @@ +## 1.0.1 + +Release Date: April 21, 2023 + +#### RELEASE NOTES + +``` +Users with Local User Account names that differ from their JumpCloud Username are now supported +``` + +#### FEATURES: + +- If a user's local account name (systemUsername) is specified on an account, the certificates for those users will be generated with their local account name (not username) and installed correctly. + +## 1.0.0 + +Release Date: March 21, 2023 + +#### RELEASE NOTES + +``` +Iniital release of the Passwordless Radius User Certificate Generation automation scritps +``` + +#### FEATURES: + +- Generate/ Import CA Certificate +- Generate User Certificates from CA Certificate +- Distribute User Certificates to JumpCloud Devices w/ JumpCloud Commands +- Monitor Command Deployments diff --git a/scripts/automation/Radius/Config.ps1 b/scripts/automation/Radius/Config.ps1 index 93c1d5087..16e169be1 100644 --- a/scripts/automation/Radius/Config.ps1 +++ b/scripts/automation/Radius/Config.ps1 @@ -37,7 +37,7 @@ $CertType = "UsernameCn" # Do not modify below ################################################################################ -$UserAgent_ModuleVersion = '1.0.0' +$UserAgent_ModuleVersion = '1.0.1' $UserAgent_ModuleName = 'PasswordlessRadiusConfig' #Build the UserAgent string $UserAgent_ModuleName = "JumpCloud_$($UserAgent_ModuleName).PowerShellModule" diff --git a/scripts/automation/Radius/Functions/Private/Get-WebJCUser.ps1 b/scripts/automation/Radius/Functions/Private/Get-WebJCUser.ps1 index 2d44aa75b..4f9488179 100644 --- a/scripts/automation/Radius/Functions/Private/Get-WebJCUser.ps1 +++ b/scripts/automation/Radius/Functions/Private/Get-WebJCUser.ps1 @@ -13,14 +13,15 @@ function get-webjcuser { } process { $response = Invoke-RestMethod -Uri "https://console.jumpcloud.com/api/systemusers/$userID" -Method GET -Headers $headers - } - end { - # return ${id, username, email } $userObj = [PSCustomObject]@{ - username = $response.username + # If the localUserAccount field is set, use that for username, otherwise use JC username + username = $(if ([string]::IsNullOrEmpty($response.systemUsername)) { $response.username } else { $response.systemUsername }) + id = $response._id email = $response.email } + } + end { return $userObj } } \ No newline at end of file