Skip to content

Commit

Permalink
omit offending fields from Get-OrganizationConfig in EXO (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: buidav <dbui>
(cherry picked from commit 62834b6)
  • Loading branch information
buidav authored and schrolla committed Jan 27, 2023
1 parent 8a1bf47 commit b42d36b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PowerShell/ScubaGear/Modules/Providers/ExportEXOProvider.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function Export-EXOProvider {
<#
2.13
#>

$Config = ConvertTo-Json @($Tracker.TryCommand("Get-OrganizationConfig"))
$Config = $Tracker.TryCommand("Get-OrganizationConfig") | Select-Object Name, DisplayName, AuditDisabled
$Config = ConvertTo-Json @($Config)


$SuccessfulCommands = ConvertTo-Json @($Tracker.GetSuccessfulCommands())
Expand Down Expand Up @@ -130,7 +130,7 @@ function Get-EXOTenantDetail {
"DisplayName"= $OrgConfig.DisplayName;
"DomainName" = $DomainName;
"TenantId" = $TenantId;
"EXOAdditionalData" = $OrgConfig;
"EXOAdditionalData" = "Unable to safely retrieve due to EXO API changes";
}
$EXOTenantInfo = ConvertTo-Json @($EXOTenantInfo) -Depth 4
$EXOTenantInfo
Expand Down

0 comments on commit b42d36b

Please sign in to comment.