Skip to content

Commit 2f02bef

Browse files
committed
Update Invoke-ListLicensesReport.ps1
1 parent 3aba590 commit 2f02bef

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/Tenant/Reports/Invoke-ListLicensesReport.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ function Invoke-ListLicensesReport {
6666
}
6767
}
6868

69+
# Strip the Term property from each TermInfo entry before returning
70+
foreach ($Result in $GraphRequest) {
71+
if ($Result.TermInfo) {
72+
$Result.TermInfo = @($Result.TermInfo | Select-Object -Property * -ExcludeProperty Term)
73+
}
74+
}
75+
6976
$Body = [PSCustomObject]@{
7077
Results = @($GraphRequest)
7178
Metadata = $Metadata

0 commit comments

Comments
 (0)