Skip to content

Commit d4830f6

Browse files
author
rvdwegen
committed
change to v1
1 parent 1883a42 commit d4830f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function Get-Tenants {
9494
throw 'RefreshToken not set. Cannot get tenant list.'
9595
}
9696
#get the full list of tenants
97-
$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" -NoAuthCheck:$true
97+
$GDAPRelationships = New-GraphGetRequest -uri "https://graph.microsoft.com/v1.0/tenantRelationships/delegatedAdminRelationships?`$filter=status eq 'active' and not startsWith(displayName,'MLT_')$RelationshipFilter&`$select=customer,autoExtendDuration,endDateTime" -NoAuthCheck:$true
9898
Write-Host "GDAP relationships found: $($GDAPRelationships.Count)"
9999
Write-Information "GDAP relationships found: $($GDAPRelationships.Count)"
100100
$totalTenants = $GDAPRelationships.customer.tenantId | Select-Object -Unique

0 commit comments

Comments
 (0)