Skip to content

Commit 4182026

Browse files
author
rvdwegen
committed
write-info
1 parent aa0fc23 commit 4182026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/CIPPCore/Public/GraphHelper/Get-Tenants.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ function Get-Tenants {
9696
#get the full list of tenants
9797
$GDAPRelationships = New-GraphGetRequest -uri "https://graph.microsoft.com/beta/tenantRelationships/delegatedAdminRelationships?`$filter=status eq 'active' and not startsWith(displayName,'MLT_')$RelationshipFilter&`$select=customer,autoExtendDuration,endDateTime&`$top=300" -NoAuthCheck:$true
9898
Write-Host "GDAP relationships found: $($GDAPRelationships.Count)"
99+
Write-Information "GDAP relationships found: $($GDAPRelationships.Count)"
99100
$totalTenants = $GDAPRelationships.customer.tenantId.Count | Select-Object -Unique
100-
Write-Host "Total tenants found in relationships result: $totalTenants"
101+
Write-Information "Total tenants found in relationships result: $totalTenants"
101102
$GDAPList = foreach ($Relationship in $GDAPRelationships) {
102103
[PSCustomObject]@{
103104
customerId = $Relationship.customer.tenantId

0 commit comments

Comments
 (0)