Skip to content

Commit

Permalink
Update Invoke-ExecExcludeTenant.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Feb 10, 2025
1 parent d5ff804 commit 8ad2304
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Function Invoke-ExecExcludeTenant {

Write-LogMessage -headers $Request.Headers -API $APINAME -message 'Accessed this API' -Sev 'Debug'

$user = $Request.Headers
$username = ([System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($user)) | ConvertFrom-Json).userDetails
$username = $Request.Headers.'x-ms-client-principal-name'
$date = (Get-Date).tostring('yyyy-MM-dd')
$TenantsTable = Get-CippTable -tablename Tenants

Expand Down

0 comments on commit 8ad2304

Please sign in to comment.