Skip to content

Commit 7abcdc6

Browse files
author
rvdwegen
committed
Patch user endpoint, no verbose
1 parent 585e58f commit 7abcdc6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-PatchUser.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ function Invoke-PatchUser {
2424
$HttpResponse.StatusCode = [HttpStatusCode]::BadRequest
2525
$HttpResponse.Body = @{'Results' = @('Failed to patch user. No user ID provided') }
2626
} 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
27+
$null = New-GraphPostRequest -uri "https://graph.microsoft.com/beta/users/$($UserObj.id)" -tenantid $tenantFilter -type PATCH -body $($UserObj | ConvertTo-Json)
2928
$HttpResponse.Body = @{'Results' = @("Properties on user $($UserObj.id) patched successfully") }
3029
}
3130

0 commit comments

Comments
 (0)