Skip to content

Commit

Permalink
Update GraphHelper.psm1
Browse files Browse the repository at this point in the history
Added the ability to use tenantid on Exo Calls via the API
  • Loading branch information
BNWEIN committed Nov 10, 2023
1 parent 9da472b commit 122ee80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GraphHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 122ee80

Please sign in to comment.