Skip to content

Commit 97d07b4

Browse files
committed
replace id with display name in response
1 parent db3335f commit 97d07b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecAccessChecks.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ Function Invoke-ExecAccessChecks {
8686
}
8787

8888
if ($Request.Body.TenantId) {
89-
$Tenant = $Request.Body.TenantId
90-
$null = Test-CIPPAccessTenant -Tenant $Tenant -ExecutingUser $Request.Headers.'x-ms-client-principal'
91-
$Results = "Refreshing tenant $Tenant"
89+
$Tenant = Get-Tenants -TenantFilter $Request.Body.TenantId
90+
$null = Test-CIPPAccessTenant -Tenant $Tenant.customerId -ExecutingUser $Request.Headers.'x-ms-client-principal'
91+
$Results = "Refreshing tenant $($Tenant.displayName)"
9292
}
9393

9494
}

0 commit comments

Comments
 (0)