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 7b0fd03 commit e566c5fCopy full SHA for e566c5f
Modules/CIPPCore/Public/New-CippUser.ps1
@@ -37,7 +37,7 @@ function New-CIPPUser {
37
'password' = $password
38
}
39
40
- if ($userobj.businessPhone) { $bodytoShip | Add-Member -NotePropertyName businessPhones -NotePropertyValue @($UserObj.businessPhone) }
+ if ($userobj.businessPhones) { $bodytoShip | Add-Member -NotePropertyName businessPhones -NotePropertyValue @($UserObj.businessPhones) }
41
if ($UserObj.defaultAttributes) {
42
$UserObj.defaultAttributes | Get-Member -MemberType NoteProperty | ForEach-Object {
43
Write-Host "Editing user and adding $($_.Name) with value $($UserObj.defaultAttributes.$($_.Name).value)"
0 commit comments