Skip to content

Commit e566c5f

Browse files
committed
fix businessPhones
1 parent 7b0fd03 commit e566c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/New-CippUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function New-CIPPUser {
3737
'password' = $password
3838
}
3939
}
40-
if ($userobj.businessPhone) { $bodytoShip | Add-Member -NotePropertyName businessPhones -NotePropertyValue @($UserObj.businessPhone) }
40+
if ($userobj.businessPhones) { $bodytoShip | Add-Member -NotePropertyName businessPhones -NotePropertyValue @($UserObj.businessPhones) }
4141
if ($UserObj.defaultAttributes) {
4242
$UserObj.defaultAttributes | Get-Member -MemberType NoteProperty | ForEach-Object {
4343
Write-Host "Editing user and adding $($_.Name) with value $($UserObj.defaultAttributes.$($_.Name).value)"

0 commit comments

Comments
 (0)