File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ Function Invoke-ExecGraphExplorerPreset {
1212
1313 $APIName = $Request.Params.CIPPEndpoint
1414 Write-LogMessage - headers $Request.Headers - API $APINAME - message ' Accessed this API' - Sev ' Debug'
15- # UNDOREPLACE
16- $Username = ([System.Text.Encoding ]::UTF8.GetString([System.Convert ]::FromBase64String($request.headers .' x-ms-client-principal' )) | ConvertFrom-Json ).userDetails
17- # Write to the Azure Functions log stream.
18- Write-Host ' PowerShell HTTP trigger function processed a request.'
15+ $Username = $request.headers .' x-ms-client-principal-name'
16+
1917 $Action = $Request.Body.Action ?? ' '
2018
19+ Write-Information ($Request.Body | ConvertTo-Json - Depth 10 )
20+
2121 switch ($Action ) {
2222 ' Copy' {
2323 $Id = $Request.Body.preset.id ? $Request.Body.preset.id : (New-Guid ).Guid
You can’t perform that action at this time.
0 commit comments