From 122ee80b0023eed797cbb63c0f51653c450d84b0 Mon Sep 17 00:00:00 2001 From: BNWEIN Date: Fri, 10 Nov 2023 13:52:04 +0000 Subject: [PATCH] Update GraphHelper.psm1 Added the ability to use tenantid on Exo Calls via the API --- GraphHelper.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GraphHelper.psm1 b/GraphHelper.psm1 index 1848c74ecb09..576bee5a7bb9 100644 --- a/GraphHelper.psm1 +++ b/GraphHelper.psm1 @@ -565,7 +565,7 @@ function Remove-CIPPCache { function New-ExoRequest ($tenantid, $cmdlet, $cmdParams, $useSystemMailbox, $Anchor, $NoAuthCheck) { if ((Get-AuthorisedRequest -TenantID $tenantid) -or $NoAuthCheck -eq $True) { $token = Get-ClassicAPIToken -resource 'https://outlook.office365.com' -Tenantid $tenantid - $tenant = (get-tenants -IncludeErrors | Where-Object -Property defaultDomainName -EQ $tenantid).customerId + $tenant = (get-tenants -IncludeErrors | Where-Object { $_.defaultDomainName -eq $tenantid -or $_.customerId -eq $tenantid }).customerId if ($cmdParams) { $Params = $cmdParams }