We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 585e58f commit 7abcdc6Copy full SHA for 7abcdc6
1 file changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-PatchUser.ps1
@@ -24,8 +24,7 @@ function Invoke-PatchUser {
24
$HttpResponse.StatusCode = [HttpStatusCode]::BadRequest
25
$HttpResponse.Body = @{'Results' = @('Failed to patch user. No user ID provided') }
26
} else {
27
- $UserObj
28
- $null = New-GraphPostRequest -uri "https://graph.microsoft.com/beta/users/$($UserObj.id)" -tenantid $tenantFilter -type PATCH -body $($UserObj | ConvertTo-Json) -Verbose
+ $null = New-GraphPostRequest -uri "https://graph.microsoft.com/beta/users/$($UserObj.id)" -tenantid $tenantFilter -type PATCH -body $($UserObj | ConvertTo-Json)
29
$HttpResponse.Body = @{'Results' = @("Properties on user $($UserObj.id) patched successfully") }
30
}
31
0 commit comments