File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Function Invoke-ExecExcludeTenant {
1515 Write-LogMessage - headers $Headers - API $APIName - message ' Accessed this API' - Sev ' Debug'
1616
1717 # $username = $Request.Headers.'x-ms-client-principal-name'
18- $Username = ([System.Text.Encoding ]::UTF8.GetString([System.Convert ]::FromBase64String($Headers .' x-ms-client-principal' )) | ConvertFrom-Json ).userDetails
18+ $Username = $Headers . ' x-ms-client-principal-name ' ?? ([System.Text.Encoding ]::UTF8.GetString([System.Convert ]::FromBase64String($Headers .' x-ms-client-principal' )) | ConvertFrom-Json ).userDetails
1919 Write-Host ($Username | ConvertTo-Json - Depth 10 )
2020 $Date = (Get-Date ).ToString(' yyyy-MM-dd' )
2121 $TenantsTable = Get-CippTable - tablename Tenants
You can’t perform that action at this time.
0 commit comments