We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9743c78 commit 8ced67bCopy full SHA for 8ced67b
scripts/automation/Radius/Functions/Private/Get-WebJCUser.ps1
@@ -15,7 +15,8 @@ function get-webjcuser {
15
$response = Invoke-RestMethod -Uri "https://console.jumpcloud.com/api/systemusers/$userID" -Method GET -Headers $headers
16
$userObj = [PSCustomObject]@{
17
# If the localUserAccount field is set, use that for username, otherwise use JC username
18
- username = $(if ($response.systemUsername -eq "") { $response.username } else { $response.systemUsername })
+ username = $(if ([string]::IsNullOrEmpty($response.systemUsername)) { $response.username } else { $response.systemUsername })
19
+
20
id = $response._id
21
email = $response.email
22
}
0 commit comments